This PR ensures that error messages such as “redundant alternative” have the right error location even if the arms share their RHS. Fixes #10781.
6 lines
308 B
Text
6 lines
308 B
Text
redundantAlt.lean:5:3-5:4: error(lean.redundantMatchAlt): Redundant alternative: Any expression matching
|
|
2
|
|
will match one of the preceding alternatives
|
|
redundantAlt.lean:7:3-7:4: error(lean.redundantMatchAlt): Redundant alternative: Any expression matching
|
|
3
|
|
will match one of the preceding alternatives
|