diff options
author | SaracenOne <SaracenOne@gmail.com> | 2021-12-25 00:53:57 +0000 |
---|---|---|
committer | SaracenOne <SaracenOne@gmail.com> | 2021-12-25 00:53:57 +0000 |
commit | b22c805dbe906da0c0a9d20490f33010f7f54cef (patch) | |
tree | f0ce96e56ca6c92b935e4495daf96e37437d541d /modules/gdscript/gdscript_analyzer.cpp | |
parent | 28174d531b7128f0281fc2b88da2f4962fd3513e (diff) |
Fix 'Compiler bug: unresolved assign' on explicitly annotated variants.
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 7b64c0564e..9cb4d189e9 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -1865,7 +1865,7 @@ void GDScriptAnalyzer::reduce_assignment(GDScriptParser::AssignmentNode *p_assig if (assignee_type.has_no_type() || assigned_value_type.is_variant()) { mark_node_unsafe(p_assignment); - if (assignee_type.is_hard_type()) { + if (assignee_type.is_hard_type() && !assignee_type.is_variant()) { p_assignment->use_conversion_assign = true; } } |