lean2/tests/lean/run/struc_names.lean

13 lines
187 B
Text
Raw Normal View History

namespace foo
structure structA [class] :=
mk :: (a : nat)
structure structB [class] extends structA :=
mk :: (b : nat)
check @structA.a
check @structB.to_structA
end foo