diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail159.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail159.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail159.hs b/testsuite/tests/typecheck/should_fail/tcfail159.hs new file mode 100644 index 0000000000..c0c2eb1902 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/tcfail159.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE UnboxedTuples #-} + +module ShouldFail where + +h :: Int -> (# Int, Int #) +h x = (# x,x #) + +foo x = case h x of + ~(# p, q #) -> p |