Location of shadowed binding is wrong in warning
|Reported by:||igloo||Owned by:||igloo|
|Type of failure:||None/Unknown||Test Case:||rn064|
|Related Tickets:||Differential Rev(s):|
If we have this module:
module Q where z :: a z = r where _a = 'a' _f r = r _b = 'b' r = undefined _c = 'c'
then the location of the shadowed
r is wrong (it's the same as the location of the one doing the shadowing):
$ ghc -fforce-recomp -Wall -c q.hs q.hs:8:11: Warning: This binding for `r' shadows the existing binding bound at q.hs:8:11 In the definition of `_f'
6.8 is fine (it doesn't try to give the location).