ApiAnnotatons : AnnDcolon in wrong place for PatBind
authorAlan Zimmerman <alan.zimm@gmail.com>
Thu, 21 May 2015 13:48:07 +0000 (15:48 +0200)
committerAlan Zimmerman <alan.zimm@gmail.com>
Thu, 21 May 2015 13:48:07 +0000 (15:48 +0200)
commitc488da851c39ca202cdd056091176acbabdd7dd4
treec2c3ea3a805beb5fb67e327e24f4f46808b57637
parent0df14b5db06751f817d3ba794cc74ac54519b5b8
ApiAnnotatons : AnnDcolon in wrong place for PatBind

Summary:
In the following code fragment

    let ls :: Int = undefined

the `::` is attached to the ls function as a whole, rather than to the
pattern on the LHS.

Test Plan: ./validate

Reviewers: hvr, austin

Reviewed By: austin

Subscribers: bgamari, thomie, mpickering

Differential Revision: https://phabricator.haskell.org/D883

GHC Trac Issues: #10396
compiler/parser/Parser.y
testsuite/tests/ghc-api/annotations/.gitignore
testsuite/tests/ghc-api/annotations/Makefile
testsuite/tests/ghc-api/annotations/T10396.stdout [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/Test10396.hs [new file with mode: 0644]
testsuite/tests/ghc-api/annotations/all.T
testsuite/tests/ghc-api/annotations/exampleTest.stdout
testsuite/tests/ghc-api/annotations/parseTree.stdout
testsuite/tests/ghc-api/annotations/t10396.hs [new file with mode: 0644]