API Annotations: AnnAt disconnected for TYPEAPP
authorAlan Zimmerman <alan.zimm@gmail.com>
Wed, 30 Jan 2019 14:20:52 +0000 (16:20 +0200)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Fri, 8 Feb 2019 16:00:22 +0000 (11:00 -0500)
commitcbfc9fcaa33c3b341830962906543dfca1dfedd7
tree919cbe496d074362c410a400f4d75703e306fcd3
parentbe15f7457b98fa0378de7e8146c122757f03c4e9
API Annotations: AnnAt disconnected for TYPEAPP

For the code

    type family F1 (a :: k) (f :: k -> Type) :: Type where
      F1 @Peano a f = T @Peano f a

the API annotation for the first @ is not attached to a SourceSpan in
the ParsedSource

Closes #16236
15 files changed:
compiler/deSugar/DsMeta.hs
compiler/hieFile/HieAst.hs
compiler/hsSyn/Convert.hs
compiler/hsSyn/HsTypes.hs
compiler/parser/Parser.y
compiler/parser/RdrHsSyn.hs
compiler/rename/RnTypes.hs
compiler/typecheck/TcExpr.hs
compiler/typecheck/TcHsType.hs
testsuite/tests/ghc-api/annotations/Makefile
testsuite/tests/ghc-api/annotations/T16236.stdout [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/Test16236.hs [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/all.T
testsuite/tests/parser/should_compile/DumpParsedAst.stderr
testsuite/tests/parser/should_compile/DumpRenamedAst.stderr