API Annotations when parsing typapp
authorAlan Zimmerman <alan.zimm@gmail.com>
Tue, 26 Jun 2018 09:07:07 +0000 (11:07 +0200)
committerBen Gamari <ben@smart-cactus.org>
Wed, 27 Jun 2018 21:07:56 +0000 (17:07 -0400)
commit4cfeca02a0a9283e8c9f9ccd9373bc1f2fd8db0a
tree19101a3958204a3dc15fcf4411530e88af632461
parent145f7c663e6df4ecfa848c0e2e478454cf9fb1d9
API Annotations when parsing typapp

Make sure the original annotations are still accessible for a promoted
type.

Closes #15303

(cherry picked from commit e53c113dcfeca9ee957722ede3d8b6a2c4c751a1)
compiler/parser/Parser.y
testsuite/tests/ghc-api/annotations/Makefile
testsuite/tests/ghc-api/annotations/T15303.stdout [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/Test15303.hs [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/all.T