This PR fixes a bug in `simp_all?` that caused some local declarations to be omitted from the `Try this:` suggestions. closes #3519
21 lines
351 B
Text
21 lines
351 B
Text
/--
|
|
info: Try this: simp only [x]
|
|
---
|
|
warning: declaration uses 'sorry'
|
|
-/
|
|
#guard_msgs in
|
|
example {P : Nat → Prop} : let x := 0; P x := by
|
|
intro x
|
|
simp? [x]
|
|
sorry
|
|
|
|
/--
|
|
info: Try this: simp_all only [x]
|
|
---
|
|
warning: declaration uses 'sorry'
|
|
-/
|
|
#guard_msgs in
|
|
example {P : Nat → Prop} : let x := 0; P x := by
|
|
intro x
|
|
simp_all? [x]
|
|
sorry
|