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
2 lines
202 B
Text
2 lines
202 B
Text
invalidPatternIssue.lean:13:0-13:20: error: Invalid pattern(s): `x` is an explicit pattern variable, but it only occurs in positions that are inaccessible to pattern matching:
|
|
{ pred := .(x.1).succ }
|