diff options
Diffstat (limited to 'testsuite/tests/deSugar/should_compile/ds058.hs')
-rw-r--r-- | testsuite/tests/deSugar/should_compile/ds058.hs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/deSugar/should_compile/ds058.hs b/testsuite/tests/deSugar/should_compile/ds058.hs new file mode 100644 index 0000000000..0b83d0bd32 --- /dev/null +++ b/testsuite/tests/deSugar/should_compile/ds058.hs @@ -0,0 +1,8 @@ +-- Test overlapping pattern warnings + +module ShouldCompile where + +f x = case x of + Just (~1) -> 0 + Just _ -> 1 -- This one cannot match + Nothing -> 2 |