summaryrefslogtreecommitdiff
path: root/testsuite/tests/cpranal/should_run
diff options
context:
space:
mode:
authorVladislav Zavialov <vlad.z.4096@gmail.com>2022-04-07 21:46:10 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-04-08 13:58:19 -0400
commit0736e949b71a0c2b5eb404aac7a5883dd52b7b5c (patch)
tree40c719a82f0d0f3313f93548f1bb94f45e1e1f1f /testsuite/tests/cpranal/should_run
parentd448049040d8f7b9b75863b096d08d16d6810f96 (diff)
downloadhaskell-0736e949b71a0c2b5eb404aac7a5883dd52b7b5c.tar.gz
Disallow (->) as a data constructor name (#16999)
The code was misusing isLexCon, which was never meant for validation. In fact, its documentation states the following: Use these functions to figure what kind of name a 'FastString' represents; these functions do /not/ check that the identifier is valid. Ha! This sign can't stop me because I can't read. The fix is to use okConOcc instead. The other checks (isTcOcc or isDataOcc) seem superfluous, so I also removed those.
Diffstat (limited to 'testsuite/tests/cpranal/should_run')
0 files changed, 0 insertions, 0 deletions