summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/SimpleFail7.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/SimpleFail7.hs')
-rw-r--r--testsuite/tests/indexed-types/should_fail/SimpleFail7.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/SimpleFail7.hs b/testsuite/tests/indexed-types/should_fail/SimpleFail7.hs
new file mode 100644
index 0000000000..3d9a089381
--- /dev/null
+++ b/testsuite/tests/indexed-types/should_fail/SimpleFail7.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE TypeFamilies #-}
+
+module ShouldFail where
+
+-- must fail: AT must be in class instance
+class C5 a where
+ data S5 a :: *
+data instance S5 Int = S5