lean4-htt/tests/lean/run/461b.lean
Leonardo de Moura 714cadfb31 fix: bug at structure instance notation
It was exposed by the second example at #461.
2021-07-27 11:56:33 -07:00

14 lines
215 B
Text

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 }
def f1 (x : Nat) : BarS :=
{ x, h' := rfl }