lean2/tests/lean/cls_err.lean

14 lines
206 B
Text

import logic
inductive H [class] (A : Type) :=
mk : A → H A
definition foo {A : Type} [h : H A] : A :=
H.rec (λa, a) h
context
variable A : Type
variable h : H A
definition tst : A :=
foo
end