summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail159.hs
blob: 1d4b540e2bdbc20919329badfe54161154cfc766 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE UnboxedTuples #-}

module ShouldFail where

h :: Int -> (# Int, Int #)
h x = (# x,x #)

foo x = case h x of
          ~(# p, q #) -> p