diff options
Diffstat (limited to 'testsuite/tests/deSugar/should_compile/T2409.hs')
-rw-r--r-- | testsuite/tests/deSugar/should_compile/T2409.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/deSugar/should_compile/T2409.hs b/testsuite/tests/deSugar/should_compile/T2409.hs new file mode 100644 index 0000000000..163786bb58 --- /dev/null +++ b/testsuite/tests/deSugar/should_compile/T2409.hs @@ -0,0 +1,11 @@ +-- Trac #2409 + +module ShouldCompile where + + f :: Int -> Int + f _ | () `seq` False = undefined + | otherwise = error "XXX" + + g :: Int -> Int + g _ | () `seq` False = undefined + | otherwise = error "XXX" |