This commit is contained in:
Folkert 2022-06-26 14:28:46 +02:00
parent 1600a5b854
commit 0cddd6b069
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -2201,15 +2201,11 @@ impl Declarations {
self.declarations[index] = DeclarationTag::Function(function_def_index);
self.expressions[index] = *closure_data.loc_body;
// TODO investigate whether this matters, and if we can be more efficient here
self.variables[index] = def.expr_var;
}
_ => {
self.declarations[index] = DeclarationTag::Value;
self.expressions[index] = def.loc_expr;
// TODO investigate whether this matters, and if we can be more efficient here
self.variables[index] = def.expr_var;
}
}