lean4-htt/tests/lean/run/struct_instance_in_eqn.lean
2020-10-25 09:16:38 -07:00

7 lines
118 B
Text

structure S :=
(x : Nat) (y : Bool) (z : Nat) (w : Nat)
def g : S → S
| s@{ x := x, ..} => { s with x := x + 1 }