mirror of
https://github.com/godotengine/godot.git
synced 2026-01-02 13:49:54 +03:00
GDScript: Make sure Lua-style dicts use StringName as keys
This commit is contained in:
@@ -2440,6 +2440,8 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_dictionary(ExpressionNode
|
||||
push_error(R"(Expected "=" after dictionary key.)");
|
||||
}
|
||||
}
|
||||
key->is_constant = true;
|
||||
key->reduced_value = static_cast<IdentifierNode *>(key)->name;
|
||||
break;
|
||||
case DictionaryNode::PYTHON_DICT:
|
||||
if (!match(GDScriptTokenizer::Token::COLON)) {
|
||||
|
||||
Reference in New Issue
Block a user