You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
GDScript: Add static typing for for loop variable
This commit is contained in:
@@ -1953,13 +1953,13 @@ Error GDScriptCompiler::_parse_block(CodeGen &codegen, const GDScriptParser::Sui
|
||||
return err;
|
||||
}
|
||||
|
||||
gen->write_for_assignment(iterator, list);
|
||||
gen->write_for_assignment(list);
|
||||
|
||||
if (list.mode == GDScriptCodeGenerator::Address::TEMPORARY) {
|
||||
codegen.generator->pop_temporary();
|
||||
}
|
||||
|
||||
gen->write_for();
|
||||
gen->write_for(iterator, for_n->use_conversion_assign);
|
||||
|
||||
err = _parse_block(codegen, for_n->loop);
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user