add update mode to reset and reuse

This commit is contained in:
Folkert 2021-11-28 14:13:02 +01:00
parent 1241d5ccbd
commit 0bdda2506c
8 changed files with 40 additions and 21 deletions

View file

@ -1626,7 +1626,7 @@ fn expr_spec<'a>(
}
_ => unreachable!("empty array does not have a list layout"),
},
Reset(symbol) => {
Reset { symbol, .. } => {
let type_id = layout_spec(builder, layout)?;
let value_id = env.symbols[symbol];