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

newtype Wombat a = Wombat (a->a)

foo :: Num a => Bool -> Wombat a
{-# INLINEABLE foo #-}
foo True  = foo False
foo False = Wombat (\x -> x+1)