lean4-htt/tests/lean/interactive/10898.lean
Kyle Miller c032af2f51
fix: make tactic .. at * save info contexts (#12607)
This PR fixes an issue where `withLocation` wasn't saving the info
context, which meant that tactics that use `at *` location syntax and do
term elaboration would save infotrees but revert the metacontext,
leading to Infoview messages like "Error updating: Error fetching goals:
Rpc error: InternalError: unknown metavariable" if the tactic failed at
some locations but succeeded at others.

Closes #10898
2026-02-25 01:59:50 +00:00

9 lines
216 B
Text

/-!
# `rw .. at *` should save metacontext
-/
example (h : 1 + 2 = 3) : True := by
rewrite [Nat.add_comm _] at *
--^ $/lean/plainGoal
--^ $/lean/plainTermGoal
trivial