diff options
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/SimpleFail2a.hs')
-rw-r--r-- | testsuite/tests/indexed-types/should_fail/SimpleFail2a.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/SimpleFail2a.hs b/testsuite/tests/indexed-types/should_fail/SimpleFail2a.hs new file mode 100644 index 0000000000..011426fe3b --- /dev/null +++ b/testsuite/tests/indexed-types/should_fail/SimpleFail2a.hs @@ -0,0 +1,14 @@ +{-# LANGUAGE TypeFamilies #-} + +module Simple2a where + +class C a where + data Sd a :: * + data Sn a :: * + type St a :: * + +instance C Int where + data Sd a :: * -- must fail: parse error + data Sd Int = SdC Char + newtype Sn Int = SnC Char + type St Int = Char |