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