More sensible SrcSpans for recursive pattern synonym errors (#16900)
Attach the `SrcSpan` of the first pattern synonym binding involved in the recursive group when throwing the corresponding error message, similarly to how it is done for type synonyms. Fixes #16900.
Showing
- compiler/typecheck/TcBinds.hs 12 additions, 6 deletionscompiler/typecheck/TcBinds.hs
- testsuite/tests/patsyn/should_fail/T16900.hs 5 additions, 0 deletionstestsuite/tests/patsyn/should_fail/T16900.hs
- testsuite/tests/patsyn/should_fail/T16900.stderr 8 additions, 0 deletionstestsuite/tests/patsyn/should_fail/T16900.stderr
- testsuite/tests/patsyn/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/patsyn/should_fail/all.T
testsuite/tests/patsyn/should_fail/T16900.hs
0 → 100644
Please register or sign in to comment