[commit: ghc] wip/T16212: API Annotations: Parens not attached correctly for ClassDecl (7278604)
git at git.haskell.org
git at git.haskell.org
Thu Jan 24 08:17:24 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T16212
Link : http://ghc.haskell.org/trac/ghc/changeset/72786048afa76885652e3a434a4a2882e9f826dc/ghc
>---------------------------------------------------------------
commit 72786048afa76885652e3a434a4a2882e9f826dc
Author: Alan Zimmerman <alan.zimm at gmail.com>
Date: Thu Jan 24 10:14:55 2019 +0200
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
>---------------------------------------------------------------
72786048afa76885652e3a434a4a2882e9f826dc
compiler/parser/RdrHsSyn.hs | 41 ++++++++++++-----------
testsuite/tests/ghc-api/annotations/T11018.stdout | 11 +++---
testsuite/tests/ghc-api/annotations/T16212.stdout | 35 ++++++++++++++-----
testsuite/tests/ghc-api/annotations/Test16212.hs | 2 ++
testsuite/tests/ghc-api/annotations/all.T | 6 ++--
5 files changed, 57 insertions(+), 38 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 72786048afa76885652e3a434a4a2882e9f826dc
More information about the ghc-commits
mailing list