lean4-htt/tests/lean/run/struct_instance_in_eqn.lean
2019-03-21 15:11:05 -07:00

7 lines
152 B
Text

structure S :=
(x : Nat) (y : Bool) (z : Nat) (w : Nat)
set_option trace.compiler.stage1 true
def g : S → S
| s@{ x := x, ..} := { x := x + 1, ..s}