diff options
Diffstat (limited to 'testsuite/tests/gadt/gadt-dim5.hs')
-rw-r--r-- | testsuite/tests/gadt/gadt-dim5.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/gadt-dim5.hs b/testsuite/tests/gadt/gadt-dim5.hs new file mode 100644 index 0000000000..126cc710df --- /dev/null +++ b/testsuite/tests/gadt/gadt-dim5.hs @@ -0,0 +1,13 @@ +{-# LANGUAGE GADTs #-} + +module ShouldSucceed2 where + +data T a where + C :: Int -> T Int + D :: Bool -> T Bool + + +foo :: T a -> a +foo (C x) = x + 1 +foo (D x) = True + |