lean4-htt/tests/lean/seqToCodeIssue.lean
2022-10-15 15:48:02 -07:00

10 lines
229 B
Text

@[noinline] def print (n : Nat) : IO Unit :=
IO.println n
set_option trace.Compiler.saveMono true
def f (b : Bool) : IO Unit := do
let a : Nat ← match b with
| true => pure 0
| false => pure 1
print a
print a