lean4-htt/tests/lean/run/invalid_dotted_identifier_prop.lean
2025-06-03 16:11:09 +02:00

28 lines
511 B
Text

/--
error: Invalid dotted identifier notation: not supported on type
Prop
-/
#guard_msgs in
def foo (n : Nat) : Nat :=
match n < 42 with
| .true => n
| .false => 47
set_option pp.mvars.anonymous false in
/--
error: Invalid dotted identifier notation: not supported on type
Sort _
-/
#guard_msgs in
def foo2 (n : Nat) : Nat :=
match PUnit with
| .unit => n
def Prop.true := True
/--
error: Invalid dotted identifier notation: not supported on type
Prop
-/
#guard_msgs in
#check (.true : Prop)