Array/Dictionary marked as not safe to const fold

Fix: #44459
This commit is contained in:
Thakee Nathees 2020-12-25 12:33:55 +05:30
parent d1231be1c8
commit 16bb01adfb
1 changed files with 2 additions and 0 deletions

View File

@ -1719,6 +1719,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: