lean4-htt/tests/lean/run/6090.lean
Kyle Miller ba3f2b3ecf
fix: make sure #check id heeds pp.raw (#6181)
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 #6090.
2024-11-23 00:39:58 +00:00

30 lines
773 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/-!
# 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