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

7 lines
151 B
Text

structure S :=
(x : Nat) (y : Bool) (z : Nat) (w : Nat)
setOption Trace.Compiler.stage1 True
def g : S → S
| s@{ x := x, ..} := { x := x + 1, ..s}