summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T12966.hs
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2016-12-15 15:27:01 -0500
committerBen Gamari <ben@smart-cactus.org>2016-12-15 15:27:02 -0500
commit81c49562570a403e8470f73f4decd3e0cb891983 (patch)
tree8eb3b888e67c84a99e691abcec058194494c22eb /testsuite/tests/typecheck/should_fail/T12966.hs
parent0cad52d6395487b617edef2b131909d3b4085be4 (diff)
downloadhaskell-81c49562570a403e8470f73f4decd3e0cb891983.tar.gz
testsuite: Add test for #12966
This isn't exactly a typechecker test, but it was the most appropriate directory I could think of. The issue being tested is fixed. Test Plan: Validate Reviewers: austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2857 GHC Trac Issues: #12966
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T12966.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/T12966.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T12966.hs b/testsuite/tests/typecheck/should_fail/T12966.hs
new file mode 100644
index 0000000000..27bcff6708
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T12966.hs
@@ -0,0 +1,4 @@
+{-# LANGUAGE RankNTypes #-}
+module T12966 where
+-- This should fail with a proper error message, not a compiler panic.
+type Maybeify c = forall d. (c d) => ((~) (Maybe d))