1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #44672 from ThakeeNathees/array-dict-const-fold-bug-fix

Array/Dictionary marked as not safe to const fold
This commit is contained in:
Rémi Verschelde
2021-01-11 13:51:31 +01:00
committed by GitHub

View File

@@ -1752,6 +1752,8 @@ void GDScriptAnalyzer::reduce_call(GDScriptParser::CallNode *p_call, bool is_awa
// Those are stored by reference so not suited for compile-time construction.
// Because in this case they would be the same reference in all constructed values.
case Variant::OBJECT:
case Variant::DICTIONARY:
case Variant::ARRAY:
case Variant::PACKED_BYTE_ARRAY:
case Variant::PACKED_INT32_ARRAY:
case Variant::PACKED_INT64_ARRAY: