Fix the for loop to create vars

This commit is contained in:
JT
2021-10-10 05:10:46 +13:00
parent 9a3b0312d2
commit e4ce41ba15
6 changed files with 23 additions and 134 deletions

View File

@ -459,6 +459,10 @@ pub fn parse_internal_call(
let signature = working_set.get_decl(decl_id).signature();
if signature.creates_scope {
working_set.enter_scope();
}
// The index into the positional parameter in the definition
let mut positional_idx = 0;
@ -554,6 +558,10 @@ pub fn parse_internal_call(
let err = check_call(command_span, &signature, &call);
error = error.or(err);
if signature.creates_scope {
working_set.exit_scope();
}
// FIXME: type unknown
(Box::new(call), span(spans), error)
}