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
10 lines
258 B
Text
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
|