mirror of
https://github.com/godotengine/godot.git
synced 2025-10-29 12:44:31 +00:00
parent
307ea716cc
commit
f0613a91be
1 changed files with 8 additions and 6 deletions
|
|
@ -983,6 +983,7 @@ void GDScriptAnalyzer::resolve_for(GDScriptParser::ForNode *p_for) {
|
||||||
}
|
}
|
||||||
|
|
||||||
GDScriptParser::DataType arg_type = call->arguments[i]->get_datatype();
|
GDScriptParser::DataType arg_type = call->arguments[i]->get_datatype();
|
||||||
|
if (!arg_type.is_variant()) {
|
||||||
if (arg_type.kind != GDScriptParser::DataType::BUILTIN) {
|
if (arg_type.kind != GDScriptParser::DataType::BUILTIN) {
|
||||||
all_is_constant = false;
|
all_is_constant = false;
|
||||||
push_error(vformat(R"*(Invalid argument for "range()" call. Argument %d should be int or float but "%s" was given.)*", i + 1, arg_type.to_string()), call->arguments[i]);
|
push_error(vformat(R"*(Invalid argument for "range()" call. Argument %d should be int or float but "%s" was given.)*", i + 1, arg_type.to_string()), call->arguments[i]);
|
||||||
|
|
@ -991,6 +992,7 @@ void GDScriptAnalyzer::resolve_for(GDScriptParser::ForNode *p_for) {
|
||||||
push_error(vformat(R"*(Invalid argument for "range()" call. Argument %d should be int or float but "%s" was given.)*", i + 1, arg_type.to_string()), call->arguments[i]);
|
push_error(vformat(R"*(Invalid argument for "range()" call. Argument %d should be int or float but "%s" was given.)*", i + 1, arg_type.to_string()), call->arguments[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Variant reduced;
|
Variant reduced;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue