summaryrefslogtreecommitdiff
path: root/testsuite/tests/dependent/should_fail/T14880-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/dependent/should_fail/T14880-2.stderr')
-rw-r--r--testsuite/tests/dependent/should_fail/T14880-2.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/dependent/should_fail/T14880-2.stderr b/testsuite/tests/dependent/should_fail/T14880-2.stderr
new file mode 100644
index 0000000000..2082ca6c34
--- /dev/null
+++ b/testsuite/tests/dependent/should_fail/T14880-2.stderr
@@ -0,0 +1,8 @@
+
+T14880-2.hs:12:9: error:
+ • Cannot generalise type; skolem ‘arg’ would escape its scope
+ if I tried to quantify (a0 :: arg) in this type:
+ forall arg. Proxy @{Proxy @{arg} a0 -> *} (Foo arg @a0) -> ()
+ (Indeed, I sometimes struggle even printing this correctly,
+ due to its ill-scoped nature.)
+ • In the type signature: quux :: forall arg. Proxy (Foo arg) -> ()