summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/SimpleFail12.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/SimpleFail12.hs')
-rw-r--r--testsuite/tests/indexed-types/should_fail/SimpleFail12.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/SimpleFail12.hs b/testsuite/tests/indexed-types/should_fail/SimpleFail12.hs
new file mode 100644
index 0000000000..0c8ffefefe
--- /dev/null
+++ b/testsuite/tests/indexed-types/should_fail/SimpleFail12.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE TypeFamilies, Rank2Types #-}
+
+
+module ShouldFail where
+
+type family C a :: *
+-- must fail: rhs is not a tau type
+type instance C Int = forall a. [a]
+