diff options
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/SimpleFail11a.hs')
-rw-r--r-- | testsuite/tests/indexed-types/should_fail/SimpleFail11a.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/SimpleFail11a.hs b/testsuite/tests/indexed-types/should_fail/SimpleFail11a.hs new file mode 100644 index 0000000000..830b05fc75 --- /dev/null +++ b/testsuite/tests/indexed-types/should_fail/SimpleFail11a.hs @@ -0,0 +1,13 @@ +{-# LANGUAGE TypeFamilies #-} + +module ShouldFail where + +data family C9 a b :: * +data instance C9 Int Int = C9IntInt +-- must fail: conflicting +data instance C9 Int Int = C9IntInt2 + +type family D9 a b :: * +type instance D9 Int Int = Char +-- must fail: conflicting +type instance D9 Int Int = Int |