reset reuse stuff

This commit is contained in:
Folkert 2020-09-04 23:07:45 +02:00
parent f02d907f17
commit b849a3019f
5 changed files with 265 additions and 599 deletions

View file

@ -292,6 +292,19 @@ impl<'a> BorrowInfState<'a> {
// the function must take it as an owned parameter
self.own_args_if_param(xs);
}
Reset(x) => {
self.own_var(z);
self.own_var(*x);
}
Reuse {
symbol: x,
arguments: ys,
..
} => {
self.own_var(z);
self.own_var(*x);
self.own_args_if_param(ys);
}
EmptyArray => {
self.own_var(z);
}