summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T18815.hs
blob: 0bbebca6039fa32e7a6a74e4194e5c376539efd7 (plain)
1
2
3
4
5
6
module T18815 where

loop :: Int -> Int -> (Int, ())
loop x y = go x
  where
    go x = if x > y then (x, ()) else go (x*2)