lean4-htt/tests/lean/run/sorry.lean
Kyle Miller 1d66ff8231
fix: app unexpander for sorryAx (#5759)
Fixes a long-standing bug in the the `sorryAx` app unexpander that
prevented it from applying. Now `sorry` pretty prints as `sorry`.
2024-10-18 01:44:52 +00:00

26 lines
532 B
Text

/-!
# Tests of the `sorry` term elaborator
-/
/-!
Basic usage.
-/
/-- warning: declaration uses 'sorry' -/
#guard_msgs in example : False := sorry
/-- warning: declaration uses 'sorry' -/
#guard_msgs in example : False := by sorry
/-!
Pretty printing
-/
/-- info: sorry : Nat -/
#guard_msgs in #check (sorry : Nat)
/-- info: fun x => sorry : Nat → Nat -/
#guard_msgs in #check fun x : Nat => (sorry : Nat)
/-- info: fun x => sorry (x + 1) : Nat → Nat -/
#guard_msgs in #check fun x : Nat => (sorry : Nat → Nat) (x + 1)