lean4-htt/tests/lean/run/lcnfBinderNameBug.lean
Leonardo de Moura d0600b3750 fix: incorrect binder name being used
cc @hargoniX
2022-09-04 16:56:42 -07:00

9 lines
152 B
Text

import Lean
def test (a : Nat) :=
let foo := match a with
| .zero => a
| .succ b => b
Nat.add foo .zero
#eval Lean.Compiler.compile #[``test]