lean4-htt/tests/lean/run/fieldAbbrevInPat.lean
Leonardo de Moura f1738ce2a0 feat: add macro for expanding field abbrev notation
The new macro allows us to use the field abbrev notation in patterns
too. See new test.
2021-08-11 16:02:50 -07:00

7 lines
88 B
Text

structure A where
x : Nat
y : Nat
def f (a : A) : Nat :=
let {x, y} := a
x + y