summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/typecheck/should_fail/tcfail159.hs
blob: c0c2eb1902a45c917690e07d925d1b2359bc28fc (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