lean2/tests/lean/bad_structures2.lean

34 lines
452 B
Text

structure foo :=
(x : bool)
structure boo :=
(x : nat)
structure bla extends foo, boo
structure boo2 :=
{x : bool}
structure bla extends foo, boo2
structure bla extends foo :=
(x : num)
structure bla extends foo :=
( : num)
structure bla extends foo :=
mk :: y z : num
structure bla2 extends foo renaming y → z
structure bla2 extends nat
structure bla2 extends Type
structure bla2 : Prop :=
(x : Prop)
structure bla3 : Prop :=
(x : nat)