### Prerequisites Please put an X between the brackets as you perform the following steps: * [x] Check that your issue is not already filed: https://github.com/leanprover/lean4/issues * [x] Reduce the issue to a minimal, self-contained, reproducible test case. Avoid dependencies to Mathlib or Batteries. * [x] Test your test case against the latest nightly release, for example on https://live.lean-lang.org/#project=lean-nightly (You can also use the settings there to switch to “Lean nightly”) ### Description After **a ton** of minimization, here is an example where all_goals swallows typing errors generated by incorrect applications: ```lean theorem bug: True := by all_goals exact Nat.succ True -- Nat.succ True is not well typed, but the tactic succeeds trivial ``` The bug propagates to <;> and from there to many other tactics and macros that fail to fail. ### Versions "4.9.0-rc3"
Activity
sacerdot commentedon Oct 3, 2024
See also the discussion on Zulip: https://leanprover.zulipchat.com/#narrow/stream/239415-metaprogramming-.2F-tactics/topic/all_goals.20.2B.20apply.20elaboration.20.3D.20lost.20errors
fix: let `simp` arguments elaborate without disabling error recovery
fix: let `simp` arguments elaborate with error recovery (#5863)