summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/gadt-dim6.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/gadt/gadt-dim6.hs')
-rw-r--r--testsuite/tests/gadt/gadt-dim6.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/gadt-dim6.hs b/testsuite/tests/gadt/gadt-dim6.hs
new file mode 100644
index 0000000000..a8075e225b
--- /dev/null
+++ b/testsuite/tests/gadt/gadt-dim6.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE GADTs #-}
+
+module ShouldSucceed3 where
+
+
+data T a where
+ C :: T b -> b -> T Int
+ D :: T Bool
+
+-- Tests scoped annotations
+foo :: T a -> a -> a
+foo (C y (x::b)) (z::a) = z + 1
+