summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T13530.hs
blob: 9f95e497f25b54bf2e249f398d0e07df15403afa (plain)
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE MagicHash, UnboxedTuples #-}

module T13530 where

import GHC.Exts

g :: Int -> (# Int#, a #)
g (I# y) = (# y, undefined #)

f :: Int -> (# Int#, Int# #)
f x = g x