fix: nasty bug due to #1804
This commit is contained in:
parent
c5584581ce
commit
cf13b29760
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ abbrev ReduceM := ReaderT Context CompilerM
|
|||
partial def reduce (code : Code) : ReduceM Code := do
|
||||
match code with
|
||||
| .let decl k =>
|
||||
let .const declName _ args := decl.value | return code.updateLet! decl (← reduce k)
|
||||
let .const declName _ args := decl.value | do return code.updateLet! decl (← reduce k)
|
||||
unless declName == (← read).declName do return code.updateLet! decl (← reduce k)
|
||||
let mut argsNew := #[]
|
||||
for used in (← read).paramMask, arg in args do
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue