summaryrefslogtreecommitdiff
path: root/mk/relpath.sh
diff options
context:
space:
mode:
authorsheaf <sam.derbyshire@gmail.com>2022-02-25 12:36:02 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-02-26 02:07:30 -0500
commit033e9f0fcd0c1f9a2814b6922275514951c87dfd (patch)
tree2690d9df130d5dfceede94db776ebdbf983846a9 /mk/relpath.sh
parentb80461954e3c52a01d0c1cc7c4087959818dbd08 (diff)
downloadhaskell-033e9f0fcd0c1f9a2814b6922275514951c87dfd.tar.gz
Error on anon wildcards in tcAnonWildCardOcc
The code in tcAnonWildCardOcc assumed that it could never encounter anonymous wildcards in illegal positions, because the renamer would have ruled them out. However, it's possible to sneak past the checks in the renamer by using Template Haskell. It isn't possible to simply pass on additional information when renaming Template Haskell brackets, because we don't know in advance in what context the bracket will be spliced in (see test case T15433b). So we accept that we might encounter these bogus wildcards in the typechecker and throw the appropriate error. This patch also migrates the error messages for illegal wildcards in types to use the diagnostic infrastructure. Fixes #15433
Diffstat (limited to 'mk/relpath.sh')
0 files changed, 0 insertions, 0 deletions