summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T5366.hs
blob: f655652ae5b4581c5aa8ba822a4427c0134e7bff (plain)
1
2
3
4
5
6
7
8
module T5366 where

newtype Id a = Id Int
data Foo = Foo {-# UNPACK #-} !(Id Foo) String
data Bar = Bar {-# UNPACK #-} !Foo

f :: Bar -> Int
f (Bar (Foo (Id x) _)) = x