diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail206.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail206.hs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail206.hs b/testsuite/tests/typecheck/should_fail/tcfail206.hs new file mode 100644 index 0000000000..a256bc3e34 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/tcfail206.hs @@ -0,0 +1,22 @@ +{-# LANGUAGE TupleSections, UnboxedTuples #-} +module Main where + +a :: Bool -> (Int, Bool) +a = ( , True) + +b :: Int -> Bool -> (Int, Bool) +b = (1, ) + +c :: a -> (a, Bool) +c = (True || False, ) + +d :: Bool -> (#Int, Bool#) +d = (# , True#) + +e :: Int -> Bool -> (#Int, Bool#) +e = (#1, #) + +f :: a -> (#a, Bool#) +f = (#True || False, #) + +main = return ()
\ No newline at end of file |