lean4-htt/tests/lean/matchErrorLocation.lean
Leonardo de Moura 2295c315aa feat: add elabTermEnsuringType
This commit also fixes a match-expression error location issue.
2020-08-15 13:49:10 -07:00

6 lines
119 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

new_frontend
def head {α} (xs : List α) (h : xs = [] → False) : α :=
match he:xs with
| [] => h he
| x::_ => x