blob: a6bce6ed4d6bf3200243c0326120f372a7535eaf [file]
structure FooS where
x : Nat
y : Nat
h : x = y
structure BarS extends FooS where
h' : x = y
h := h'
def f (x : Nat) : BarS :=
{ x, y := x, h' := rfl }
/-- error: Cannot synthesize placeholder for field `h` -/
#guard_msgs in
example (x : Nat) : BarS :=
{ x, h' := rfl, .. }
def f1 (x : Nat) : BarS :=
{ x, h' := rfl, y := _ }