summaryrefslogtreecommitdiff
path: root/testsuite/tests/patsyn/should_fail/T14552.stderr
diff options
context:
space:
mode:
authorRichard Eisenberg <rae@richarde.dev>2019-12-11 15:58:56 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-01-12 21:29:27 -0500
commit350e2b78788d47255d27489dfc62d664498b5de4 (patch)
tree50f2f1982c9f120e6b8aac1970579d34333cd16a /testsuite/tests/patsyn/should_fail/T14552.stderr
parent9129210f7e9937c1065330295f06524661575839 (diff)
downloadhaskell-350e2b78788d47255d27489dfc62d664498b5de4.tar.gz
Don't zap to Any; error instead
This changes GHC's treatment of so-called Naughty Quantification Candidates to issue errors, instead of zapping to Any. Close #16775. No new test cases, because existing ones cover this well.
Diffstat (limited to 'testsuite/tests/patsyn/should_fail/T14552.stderr')
-rw-r--r--testsuite/tests/patsyn/should_fail/T14552.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/patsyn/should_fail/T14552.stderr b/testsuite/tests/patsyn/should_fail/T14552.stderr
new file mode 100644
index 0000000000..b9b6b8448b
--- /dev/null
+++ b/testsuite/tests/patsyn/should_fail/T14552.stderr
@@ -0,0 +1,8 @@
+
+T14552.hs:22:9: error:
+ • Cannot generalise type; skolem ‘k’ would escape its scope
+ if I tried to quantify (aa0 :: k) in this type:
+ forall k (w :: k --> *). Exp a0 (F @k @(*) w aa0)
+ (Indeed, I sometimes struggle even printing this correctly,
+ due to its ill-scoped nature.)
+ • In the declaration for pattern synonym ‘FOO’