forked from leanprover/lean4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make sure
#check id
heeds pp.raw
This PR fixes a bug where the signature pretty printer would ignore the current setting of `pp.raw`. This fixes an issue where `#check ident` would not heed `pp.raw`. Closes leanprover#6090.
- Loading branch information
Showing
3 changed files
with
39 additions
and
5 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
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,30 @@ | ||
/-! | ||
# Make sure `#check` heeds `pp.raw` | ||
https://github.com/leanprover/lean4/issues/6090 | ||
-/ | ||
|
||
section | ||
/-- info: id.{u} {α : Sort u} (a : α) : α -/ | ||
#guard_msgs in #check id | ||
/-- info: @id : {α : Sort u_1} → α → α -/ | ||
#guard_msgs in #check @id | ||
-- '#print' was unaffected, but throw in a test anyway. | ||
/-- | ||
info: def id.{u} : {α : Sort u} → α → α := | ||
fun {α} a => a | ||
-/ | ||
#guard_msgs in #print id | ||
|
||
set_option pp.raw true | ||
|
||
/-- info: id.{u} : forall {α : Sort.{u}}, α -> α -/ | ||
#guard_msgs in #check id | ||
/-- info: id.{u_1} : forall {α : Sort.{u_1}}, α -> α -/ | ||
#guard_msgs in #check @id | ||
-- '#print' was unaffected, but throw in a test anyway. | ||
/-- | ||
info: def id.{u} : forall {α : Sort.{u}}, α -> α := | ||
fun {α : Sort.{u}} (a : α) => a | ||
-/ | ||
#guard_msgs in #print id | ||
end |