lean4-htt/tests/lean/invalidPatternIssue.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

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 }