summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/T3013.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/gadt/T3013.hs')
-rw-r--r--testsuite/tests/gadt/T3013.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/T3013.hs b/testsuite/tests/gadt/T3013.hs
new file mode 100644
index 0000000000..3b123a0d80
--- /dev/null
+++ b/testsuite/tests/gadt/T3013.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE GADTs #-}
+-- Trac 3013.
+-- This isn't strictly a GADT test, but it uses GADT syntax
+
+module T3013 where
+
+data T where
+ A, B :: T
+ C :: T
+ D, E :: Int -> T
+
+f :: T -> T
+f A = D 3