summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/gadt15.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/gadt/gadt15.hs')
-rw-r--r--testsuite/tests/gadt/gadt15.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/gadt15.hs b/testsuite/tests/gadt/gadt15.hs
new file mode 100644
index 0000000000..c6d3cc9442
--- /dev/null
+++ b/testsuite/tests/gadt/gadt15.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE GADTs #-}
+
+-- Triggered a desugaring bug in earlier verison
+
+module Shouldcompile where
+
+data T a where
+ T1 :: Int -> T Int
+
+f :: (T a, a) -> Int
+f (T1 x, z) = z