diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail152.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail152.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail152.hs b/testsuite/tests/typecheck/should_fail/tcfail152.hs new file mode 100644 index 0000000000..3ebb6fe0f6 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/tcfail152.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE ExistentialQuantification #-} +
+-- This test made Hugs fail (Oct 05) because the constraint
+-- from the 'toInteger' call escaped from the pattern match
+
+module ShouldFail where
+
+data T = forall a. C a
+
+test (C x) = toInteger x
|