summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/records-fail1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/gadt/records-fail1.hs')
-rw-r--r--testsuite/tests/gadt/records-fail1.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/records-fail1.hs b/testsuite/tests/gadt/records-fail1.hs
new file mode 100644
index 0000000000..8eefee51e7
--- /dev/null
+++ b/testsuite/tests/gadt/records-fail1.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE GADTs #-}
+
+-- Tests record syntax for GADTs
+
+module ShouldFail where
+
+data T a where
+ T1 { x :: a, y :: b } :: T (a,b)
+ T4 { x :: Int } :: T [a]
+
+ \ No newline at end of file