lean4-htt/tests/elab_fail/liftOverLeft.lean
Sebastian Graf 40e8f4c5fb
chore: turn on new do elaborator in Core (#12656)
This PR turns on the new `do` elaborator in Init, Lean, Std, Lake and
the testsuite.

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 12:38:33 +00:00

10 lines
273 B
Text

set_option backward.do.legacy false
def foo1 : IO Unit := do
let f (x : IO.Ref Nat) : IO Nat :=
pure ((← x.get) + 1)
IO.println (IO.mkRef 10)
def foo2 : IO Unit := do
let rec f (x : IO.Ref Nat) : IO Nat :=
pure ((← x.get) + 1)
IO.println (IO.mkRef 10)