blob: 661ffadeb69101c6b105b7231d128989355a4e5f [file] [edit]
structure A where (a b : Nat)
structure B extends A where (c : Nat)
structure C where (a b c : Nat)
structure D where (toA : A) (c : Nat)
def foo (s : C) : B := {s with} -- works in lean 4, works in lean 3
-- def bar (s : D) : B := {s with} -- no longer works after #2478
-- Should fields of non-subobject fields be treated as fields
-- of the original structure?