lean4-htt/tests/lean/matchUnknownFVarBug.lean.expected.out
jrr6 d1ec806834
feat: improve error messages in invalid match alternatives (#8368)
This PR improves the error messages produced by invalid pattern-match
alternatives and improves parity in error placement between
pattern-matching tactics and elaborators.

Closes #7170
2025-05-19 17:40:41 +00:00

10 lines
258 B
Text

matchUnknownFVarBug.lean:2:2-2:7: error: Missing cases:
(some (Nat.succ _)), (some _)
(some (Nat.succ _)), none
none, (some _)
none, none
matchUnknownFVarBug.lean:3:18-3:19: error: unsolved goals
n? x✝ : Option Nat
h : n? = some 0
h' : n? = x✝
⊢ False