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

7 lines
130 B
Text

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