fix: scope issue with ir_stack being incremented wrongly with assignment

Also fixed  scope of constructor tag and void in whens
This commit is contained in:
Kasey White
2023-03-28 19:58:36 -04:00
committed by Kasey
parent 80f2fd746d
commit aa29636d50
2 changed files with 25 additions and 7 deletions

View File

@@ -17,5 +17,9 @@ pub fn aiken_optimize_and_intern(program: Program<Name>) -> Program<Name> {
let program: Program<Name> = program_named.try_into().unwrap();
program.lambda_reduce().inline_reduce()
program
.lambda_reduce()
.inline_reduce()
.lambda_reduce()
.inline_reduce()
}