You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #56232 from V-Sekai/invalid_explicit_variant_assign_fix
This commit is contained in:
@@ -1900,7 +1900,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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user