summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_compile/ds058.hs
blob: 0b83d0bd32a5b4e7a17731fa9aeb09ea920a4e84 (plain)
1
2
3
4
5
6
7
8
-- Test overlapping pattern warnings

module ShouldCompile where

f x = case x of 
	Just (~1) -> 0
        Just _    -> 1	-- This one cannot match
        Nothing   -> 2