You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-26 15:46:23 +00:00
line unsafe for indexing with known base type & unkown identifier
(cherry picked from commit 0780ad2800)
This commit is contained in:
committed by
Rémi Verschelde
parent
243711e77f
commit
12c776dba3
@@ -6569,6 +6569,7 @@ GDScriptParser::DataType GDScriptParser::_reduce_node_type(Node *p_node) {
|
||||
node_type = _reduce_identifier_type(&base_type, member_id->name, op->line, true);
|
||||
#ifdef DEBUG_ENABLED
|
||||
if (!node_type.has_type) {
|
||||
_mark_line_as_unsafe(op->line);
|
||||
_add_warning(GDScriptWarning::UNSAFE_PROPERTY_ACCESS, op->line, member_id->name.operator String(), base_type.to_string());
|
||||
}
|
||||
#endif // DEBUG_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user