mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
reset reuse stuff
This commit is contained in:
parent
f02d907f17
commit
b849a3019f
5 changed files with 265 additions and 599 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue