summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T15881.stderr
diff options
context:
space:
mode:
authorRichard Eisenberg <rae@richarde.dev>2019-12-05 16:47:34 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-12-11 14:12:55 -0500
commit2d1b9619e56e1a83fba9a630e7735adb8ac7c16a (patch)
tree27d20f3e760675e27dc874324dbbc02dfecc5ef0 /testsuite/tests/polykinds/T15881.stderr
parentf80c4a66ae219afa7bd4172441f4e94ba649c9d9 (diff)
downloadhaskell-2d1b9619e56e1a83fba9a630e7735adb8ac7c16a.tar.gz
Warn on inferred polymorphic recursion
Silly users sometimes try to use visible dependent quantification and polymorphic recursion without a CUSK or SAK. This causes unexpected errors. So we now adjust expectations with a bit of helpful messaging. Closes #17541 and closes #17131. test cases: dependent/should_fail/T{17541{,b},17131}
Diffstat (limited to 'testsuite/tests/polykinds/T15881.stderr')
-rw-r--r--testsuite/tests/polykinds/T15881.stderr1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T15881.stderr b/testsuite/tests/polykinds/T15881.stderr
index 4fde71dab7..8f395735db 100644
--- a/testsuite/tests/polykinds/T15881.stderr
+++ b/testsuite/tests/polykinds/T15881.stderr
@@ -3,3 +3,4 @@ T15881.hs:8:18: error:
• Occurs check: cannot construct the infinite kind: k0 ~ k0 -> *
• In the first argument of ‘n’, namely ‘n’
In the kind ‘n n’
+ In the data type declaration for ‘A’