summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T2334.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/T2334.hs')
-rw-r--r--testsuite/tests/indexed-types/should_fail/T2334.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/T2334.hs b/testsuite/tests/indexed-types/should_fail/T2334.hs
new file mode 100644
index 0000000000..c73402e2d5
--- /dev/null
+++ b/testsuite/tests/indexed-types/should_fail/T2334.hs
@@ -0,0 +1,16 @@
+{-# LANGUAGE TypeFamilies #-}
+
+-- Trac #2334
+
+module Test where
+
+data family F r
+
+newtype instance F () = F () () deriving Eq
+newtype instance F Int = H deriving Eq
+
+data instance F Bool = K1
+data instance F Bool = K2
+
+
+