Merge pull request #72008 from vonagam/fix-property-access-unsafe-mark

GDScript: Fix marking of line with unsafe property access as unsafe
This commit is contained in:
Rémi Verschelde 2023-01-26 01:04:57 +01:00
commit 944b44243d
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

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