lean4-htt/tests/lean/diamond3.lean
2021-08-10 06:31:44 -07:00

17 lines
254 B
Text

structure A where
x : Nat := 0
y : Nat := 0
f : Nat → Nat := (. + 10)
structure B extends A where
z : Nat
structure C extends A where
w : Nat
set_option structureDiamondWarning false
structure D extends B, C where
a : Nat
#print D.toC