summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_compile/T5117.hs
blob: e396cc5d0f5b4fff78369a821bda9c43c06d8553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{-# LANGUAGE OverloadedStrings #-}
module BadWarning where

data MyString = MyString String

f1 (MyString "a") = undefined
f1 (MyString "bb") = undefined
f1 _ = undefined

f2 (MyString "aa") = undefined
f2 (MyString "bb") = undefined
f2 _ = undefined

-- Genuine overlap here!
f3(MyString ('a':_)) = undefined
f3 (MyString "a") = undefined
f3 _ = undefined