lean4-htt/tests/elab_fail/pureCoeIssue.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

16 lines
276 B
Text

set_option backward.do.legacy false
def f1 (x : Nat) : IO Unit := do
IO.println x
return ()
def g1 : IO Unit := do
f1 -- Error
pure ()
def f2 (x : Nat) (y : Nat) : IO Unit := do
IO.println s!"{x} {y}"
return ()
def g2 : IO Unit := do
f2 10 -- Error
pure ()