summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/gadtSyntaxFail001.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/gadt/gadtSyntaxFail001.hs')
-rw-r--r--testsuite/tests/gadt/gadtSyntaxFail001.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/gadtSyntaxFail001.hs b/testsuite/tests/gadt/gadtSyntaxFail001.hs
new file mode 100644
index 0000000000..8fd8bfdf5b
--- /dev/null
+++ b/testsuite/tests/gadt/gadtSyntaxFail001.hs
@@ -0,0 +1,9 @@
+
+{-# LANGUAGE GADTSyntax #-}
+
+module GadtSyntaxFail001 where
+
+data Foo a b where
+ C1 :: a -> Int -> b -> Foo b a
+ C2 :: a -> Char -> Foo a Int
+ Cs :: Foo a b