-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore
use!
and congrm
. Add test file
- Loading branch information
Showing
2 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import Mathlib.Tactic.Use | ||
import Mathlib.Tactic.Congrm | ||
import Mathlib.Tactic.TerminalRefineLinter | ||
|
||
#guard_msgs in | ||
example : Nat := by | ||
use 0 | ||
|
||
#guard_msgs in | ||
example : Nat := by | ||
use! 0 | ||
|
||
#guard_msgs in | ||
example : 0 = 0 := by | ||
congrm(_) | ||
|
||
set_option linter.terminalRefine false in | ||
set_option linter.terminalRefine true in | ||
/-- | ||
warning: Please, use `exact` instead of `refine'`! [linter.terminalRefine] | ||
--- | ||
warning: Please, use `exact` instead of `refine`! [linter.terminalRefine] | ||
-/ | ||
#guard_msgs in | ||
example : 0 = 0 ∧ 0 = 0 := by | ||
constructor | ||
refine' rfl | ||
refine rfl |