summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorThakee Nathees <thakeenathees@gmail.com>2020-12-25 12:33:55 +0530
committerThakee Nathees <thakeenathees@gmail.com>2020-12-25 12:33:55 +0530
commit16bb01adfb16885c6c4aec041c6ac3be94e90007 (patch)
tree8744b541418cf2cf11dbc676031174bd6c69f803 /modules
parentd1231be1c8f8f2c16fd1047adcd3c7f997a07c1f (diff)
Array/Dictionary marked as not safe to const fold
Fix: #44459
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript_analyzer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp
index 5a6240f31a..64c70c5432 100644
--- a/modules/gdscript/gdscript_analyzer.cpp
+++ b/modules/gdscript/gdscript_analyzer.cpp
@@ -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: