mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #57229 from cdemirer/match-dictionary-non-const-key-crash-fix
This commit is contained in:
@@ -1586,7 +1586,7 @@ void GDScriptAnalyzer::resolve_match_pattern(GDScriptParser::PatternNode *p_matc
|
||||
if (p_match_pattern->dictionary[i].key) {
|
||||
reduce_expression(p_match_pattern->dictionary[i].key);
|
||||
if (!p_match_pattern->dictionary[i].key->is_constant) {
|
||||
push_error(R"(Expression in dictionary pattern key must be a constant.)", p_match_pattern->expression);
|
||||
push_error(R"(Expression in dictionary pattern key must be a constant.)", p_match_pattern->dictionary[i].key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user