diff options
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/SimpleFail11d.hs')
-rw-r--r-- | testsuite/tests/indexed-types/should_fail/SimpleFail11d.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/SimpleFail11d.hs b/testsuite/tests/indexed-types/should_fail/SimpleFail11d.hs new file mode 100644 index 0000000000..b0457a6933 --- /dev/null +++ b/testsuite/tests/indexed-types/should_fail/SimpleFail11d.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE TypeFamilies #-} + +module ShouldFail where + +data family C9 a b :: * +data instance C9 Int Int = C9IntInt +data instance C9 [a] Int = C9ListInt +data instance C9 [Int] [a] = C9ListList2 +-- must fail: conflicting +data instance C9 [a] [Int] = C9ListList |