lean4-htt/tests/pkg/builtin_attr/UserAttr/Tst.lean
2024-04-29 05:46:11 +02:00

18 lines
295 B
Text

import UserAttr.BlaAttr
@[bar] def f (x : Nat) := x + 2
@[bar] def g (x : Nat) := x + 1
attribute [irreducible] myFun
/--
error: type mismatch
rfl
has type
myFun x = myFun x : Prop
but is expected to have type
myFun x = x + 1 : Prop
-/
#guard_msgs in
example : myFun x = x + 1 :=
rfl