summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_fail/rnfail004.hs
blob: f8f01ee6ff24b418dbe56125da2a0ff32f8d4996 (plain)
1
2
3
4
5
6
7
8
-- !!! multiple definitions, but hidden in patterns
module Foo where

f x = x
  where
    a           = []
    (b,c,a)     = ([],[],d)
    [d,b,_]     = ([],a,[])