diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail087.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail087.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail087.hs b/testsuite/tests/typecheck/should_fail/tcfail087.hs new file mode 100644 index 0000000000..6055a13d21 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/tcfail087.hs @@ -0,0 +1,13 @@ +{-# LANGUAGE UnboxedTuples #-} + +-- !!! Check that unboxed tuples can't be function arguments +module ShouldFail where + +data Ex = Ex (# Int,Int #) + +f :: (# Int,Int #) -> Int +f x = error "urk" + +g (# x,y #) = x + + |