You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Merge pull request #31893 from bojidar-bg/25081-gdscript-index-self
Re-allow indexing on objects and other non-builtin types
This commit is contained in:
@@ -6585,7 +6585,7 @@ GDScriptParser::DataType GDScriptParser::_reduce_node_type(Node *p_node) {
|
|||||||
return DataType();
|
return DataType();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (check_types && !node_type.has_type) {
|
if (check_types && !node_type.has_type && base_type.kind == DataType::BUILTIN) {
|
||||||
// Can infer indexing type for some variant types
|
// Can infer indexing type for some variant types
|
||||||
DataType result;
|
DataType result;
|
||||||
result.has_type = true;
|
result.has_type = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user