lean2/tests/lean/run/parent_struct_inst.lean

11 lines
150 B
Text
Raw Normal View History

open nat
structure A [class] := (n : )
definition f [A] := A.n
structure B extends A :=
(Hf : f = 0)
example : B := ⦃B, n := 0, Hf := rfl⦄