Ticket #1551 (closed bug: invalid)
Incorrect warning: Pattern match(es) are overlapped
Description
The following program
main = print $ f ab a = "foo" ab = "bar" f :: String -> Int f a = 0 f ab = 1
produces
Warning: Pattern match(es) are overlapped
In the definition of `f': f ab = ...
but the patterns don't overlap, i.e., if a matches, ab does not match, and viceversa.
Change History
Note: See
TracTickets for help on using
tickets.
