lean4-htt/tests/lean/run/match_anonymous_constructor.lean

10 lines
146 B
Text

set_option new_elaborator true
definition p1 := (10, 20, 30)
definition v2 : nat :=
match p1 with
⟨a, b⟩ := a
end
example : v2 = 10 := rfl