You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
variable {α : Type}
@[class]structureOne (α : Type) where
one : α
instanceinstOneNat : One Nat where
one := 1structureTwo (α : Type) where
two : α
instanceinstTwoNat : Two Nat where
two := 2example {T : Type} [One T] : True := by trivial
/--error: invalid binder annotation, type is not a class instance Two Tuse the command `set_option checkBinderAnnotations false` to disable the check-/
#guard_msgs inexample {T : Type} [Two T] : True := by trivial
#synth One Nat
/--error: type class instance expected Two Nat-/
#guard_msgs in #synth Two Nat
see: https://leanprover.zulipchat.com/#narrow/stream/113489-new-members/topic/what.20is.20.60class.60.20attribute/near/445581181
MIL の7章に記述があるものの,ただの構造体との違いがわからない
The text was updated successfully, but these errors were encountered: