You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Re-allow indexing on "self" and object types in GDScript
Fixes #25081
(cherry picked from commit e3d05fa42d)
This commit is contained in:
committed by
Rémi Verschelde
parent
5e8edf9c5d
commit
8112025573
@@ -6444,7 +6444,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