lean4-htt/tests/lean/redundantAlt.lean.expected.out
Joachim Breitner 8431088c93
fix: preserve error locations when expanding match arms (#10783)
This PR ensures that error messages such as “redundant alternative” have
the right error location even if the arms share their RHS. Fixes #10781.
2025-10-15 13:31:42 +00:00

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