diff options
Diffstat (limited to 'testsuite/tests/gadt/lazypat.hs')
-rw-r--r-- | testsuite/tests/gadt/lazypat.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/lazypat.hs b/testsuite/tests/gadt/lazypat.hs new file mode 100644 index 0000000000..f16da207aa --- /dev/null +++ b/testsuite/tests/gadt/lazypat.hs @@ -0,0 +1,7 @@ +{-# LANGUAGE GADTs, ExistentialQuantification #-}
+
+module ShouldFail where
+
+data T = forall a. T a (a->Int)
+
+f ~(T x f) = f x
\ No newline at end of file |