lean4-htt/tests/lean/run/struc_names.lean
2017-03-09 18:41:19 -08:00

12 lines
189 B
Text

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