summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_compile/T2409.hs
blob: bde05cd3e14f37d1aa54f14e7109e48b12c276ca (plain)
1
2
3
4
5
6
7
8
9
10
11
-- #2409

module ShouldCompile where

 f :: Int -> Int
 f _ | () `seq` False = undefined
     | otherwise = error "XXX"

 g :: Int -> Int
 g _ | () `seq` False = undefined
     | otherwise = error "XXX"