diff options
author | Thakee Nathees <thakeenathees@gmail.com> | 2020-04-17 12:13:57 +0530 |
---|---|---|
committer | Thakee Nathees <thakeenathees@gmail.com> | 2020-04-17 16:52:22 +0530 |
commit | 0780ad2800aeeb26c02871d0a6242f68097c69b2 (patch) | |
tree | 5b0a23e016b47a2a9d1bfd6f4d082fe4222344b1 /modules | |
parent | c9de04b628e225e74aededb3dc0fa7b772090660 (diff) |
line unsafe for indexing with known base type & unkown identifier
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 8d34ce5c70..4449038fab 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -6562,6 +6562,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 |