diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2021-02-15 11:09:34 -0500 |
---|---|---|
committer | Ryan Scott <ryan.gl.scott@gmail.com> | 2021-02-15 11:09:43 -0500 |
commit | d1869cfcdee8a00a6c09e1d453ff0ece197b93c8 (patch) | |
tree | 483dd9ea5a3f660617bfaca195847f01bc80faa1 /hadrian/build.bat | |
parent | b9fe4cd5ea843e95a333520e2e6036dd83852f5e (diff) | |
download | haskell-wip/T19374.tar.gz |
Parse symbolic names in ANN type correctly with otyconwip/T19374
This adds a new `otycon` production to the parser that allows for type
constructor names that are either alphanumeric (`tycon`) or symbolic
(`tyconsym`), where the latter must be parenthesized appropriately.
`otycon` is much like the existing `oqtycon` production, except that it does
not permit qualified names. The parser now uses `otycon` to parse type
constructor names in `ANN type` declarations, which fixes #19374.
To make sure that all of this works, I added three test cases:
* `should_compile/T19374a`: the original test case from #19374
* `should_fail/T19374b`: a test that makes sure that an `ANN` with a qualified
name fails to parse
* `should_fail/T19374c`: a test that makes sure that an `ANN type` with a
qualified name fails to parse
Diffstat (limited to 'hadrian/build.bat')
0 files changed, 0 insertions, 0 deletions