summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail195.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail195.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail195.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail195.hs b/testsuite/tests/typecheck/should_fail/tcfail195.hs
new file mode 100644
index 0000000000..4c2408e8ba
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/tcfail195.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE RankNTypes, GADTs #-}
+
+module ShouldFail where
+
+data Foo a where
+ Foo :: Int -> Foo (forall a. a)