API Annotations: Parens not attached correctly for ClassDecl
authorAlan Zimmerman <alan.zimm@gmail.com>
Thu, 24 Jan 2019 08:14:55 +0000 (10:14 +0200)
committerBen Gamari <ben@smart-cactus.org>
Wed, 30 Jan 2019 15:06:32 +0000 (10:06 -0500)
commit4bf35da4fccd2a21153a1c19bfa80006e99e02a1
treea530b5f0d17cfe31f5dcf1bce3ebde12d360e0d9
parente7e5f4aebec2f095071a1949bb4595744754ee04
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
compiler/parser/RdrHsSyn.hs
testsuite/tests/ghc-api/annotations/T11018.stdout
testsuite/tests/ghc-api/annotations/T16212.stdout
testsuite/tests/ghc-api/annotations/Test16212.hs
testsuite/tests/ghc-api/annotations/all.T
utils/hsc2hs