fix: fixes #1558
This commit is contained in:
parent
353eb0dd27
commit
f1c150228b
2 changed files with 6 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ open Meta
|
|||
|
||||
@[builtinTactic Lean.Parser.Tactic.Conv.change] def evalChange : Tactic := fun stx => do
|
||||
match stx with
|
||||
| `(conv| change $e) => do
|
||||
| `(conv| change $e) => withMainContext do
|
||||
let lhs ← getLhs
|
||||
let mvarCounterSaved := (← getMCtx).mvarCounter
|
||||
let r ← elabTermEnsuringType e (← inferType lhs)
|
||||
|
|
|
|||
5
tests/lean/run/1558.lean
Normal file
5
tests/lean/run/1558.lean
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
example : (λ (u : Nat) => u + 0) = id :=by
|
||||
conv =>
|
||||
lhs
|
||||
intro u
|
||||
change u
|
||||
Loading…
Add table
Reference in a new issue