mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
GDScript: Make sure Lua-style dicts use StringName as keys
This commit is contained in:
parent
c7511de02e
commit
1e4ff2ede6
2 changed files with 4 additions and 2 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue