diff options
author | Richard Eisenberg <rae@richarde.dev> | 2019-12-05 16:47:34 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-12-11 14:12:55 -0500 |
commit | 2d1b9619e56e1a83fba9a630e7735adb8ac7c16a (patch) | |
tree | 27d20f3e760675e27dc874324dbbc02dfecc5ef0 /testsuite/tests/saks | |
parent | f80c4a66ae219afa7bd4172441f4e94ba649c9d9 (diff) | |
download | haskell-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/saks')
-rw-r--r-- | testsuite/tests/saks/should_compile/Makefile | 3 | ||||
-rw-r--r-- | testsuite/tests/saks/should_fail/Makefile | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/saks/should_compile/Makefile b/testsuite/tests/saks/should_compile/Makefile new file mode 100644 index 0000000000..9101fbd40a --- /dev/null +++ b/testsuite/tests/saks/should_compile/Makefile @@ -0,0 +1,3 @@ +TOP=../../.. +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/test.mk diff --git a/testsuite/tests/saks/should_fail/Makefile b/testsuite/tests/saks/should_fail/Makefile new file mode 100644 index 0000000000..9101fbd40a --- /dev/null +++ b/testsuite/tests/saks/should_fail/Makefile @@ -0,0 +1,3 @@ +TOP=../../.. +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/test.mk |