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

12 lines
248 B
Text

import Lean
set_option backward.do.legacy false
namespace Lean.Meta
def f (e : Expr) : MetaM Bool := do
forallTelescope e fun xs b =>
match (← uinfoldDefinition? b) with
| none => pure true
| some _ => pure false
end Lean.Meta