mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
GDScript: Fix cached parser error when using typed Dictionaries
This commit is contained in:
parent
44fa552343
commit
eb8b9898c9
2 changed files with 12 additions and 4 deletions
|
|
@ -165,6 +165,10 @@ public:
|
|||
container_element_types.write[p_index] = DataType(p_type);
|
||||
}
|
||||
|
||||
_FORCE_INLINE_ int get_container_element_type_count() const {
|
||||
return container_element_types.size();
|
||||
}
|
||||
|
||||
_FORCE_INLINE_ DataType get_container_element_type(int p_index) const {
|
||||
ERR_FAIL_INDEX_V(p_index, container_element_types.size(), get_variant_type());
|
||||
return container_element_types[p_index];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue