diff options
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/SimpleFail3a.hs')
-rw-r--r-- | testsuite/tests/indexed-types/should_fail/SimpleFail3a.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/SimpleFail3a.hs b/testsuite/tests/indexed-types/should_fail/SimpleFail3a.hs new file mode 100644 index 0000000000..87f68ab124 --- /dev/null +++ b/testsuite/tests/indexed-types/should_fail/SimpleFail3a.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE TypeFamilies #-} + +module ShouldFail where + +class C1 a where + data S1 a :: * + +-- must fail: wrong category of type instance +instance C1 Int where + type S1 Int = Bool |