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)
committerAlan Zimmerman <alan.zimm@gmail.com>
Wed, 27 Feb 2019 17:42:14 +0000 (19:42 +0200)
commit09785b9e318e084e51213ae1a7dd023620814d99
treeca480d9e1fa189435f7b4eb17c7f997c12a4c2ac
parent6a2e19bc5e89d69bfaa16499007b874976f9b614
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 4bf35da4fccd2a21153a1c19bfa80006e99e02a1)
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