GDScript: Fix marking of line with unsafe property access as unsafe

This commit is contained in:
Dmitrii Maganov 2023-01-25 01:45:40 +02:00
parent a3a42159e3
commit 3c308f42e2

View File

@ -3534,6 +3534,7 @@ void GDScriptAnalyzer::reduce_subscript(GDScriptParser::SubscriptNode *p_subscri
}
#endif
result_type.kind = GDScriptParser::DataType::VARIANT;
mark_node_unsafe(p_subscript);
}
}
if (!valid) {