API Annotations: Parens not attached correctly for ClassDecl
The parens around the kinded tyvars should be attached to the class declaration as a whole, they are attached to the tyvar instead, outside the span. An annotation must always be within or after the span it is contained in. Closes #16212 (cherry picked from commit 4bf35da4)
Showing
- compiler/parser/RdrHsSyn.hs 22 additions, 19 deletionscompiler/parser/RdrHsSyn.hs
- testsuite/tests/ghc-api/annotations/T11018.stdout 5 additions, 6 deletionstestsuite/tests/ghc-api/annotations/T11018.stdout
- testsuite/tests/ghc-api/annotations/T16212.stdout 26 additions, 9 deletionstestsuite/tests/ghc-api/annotations/T16212.stdout
- testsuite/tests/ghc-api/annotations/Test16212.hs 2 additions, 0 deletionstestsuite/tests/ghc-api/annotations/Test16212.hs
- testsuite/tests/ghc-api/annotations/all.T 2 additions, 4 deletionstestsuite/tests/ghc-api/annotations/all.T
Loading
Please register or sign in to comment