Incorrect source location on defaulting warnings.
Test program:
> module Test where
> a = 1
> b = 2
When compiled with -Wall gives the following warning messages with incorrect source locations:
Test.lhs:1: Warning: Defaulting `Num t' to type `Integer'
ni
Test.lhs:1: Warning: Defaulting `Num t' to type `Integer'
The compiler appears to associate the source location of the module declartion with these warnings instead of the location of the actual defaulted expression.
Trac metadata
Trac field |
Value |
Version |
None |
Type |
Bug |
TypeOfFailure |
OtherFailure |
Priority |
normal |
Resolution |
ResolvedWon'tFix |
Component |
Compiler |
Test case |
|
Differential revisions |
|
BlockedBy |
|
Related |
|
Blocking |
|
CC |
|
Operating system |
|
Architecture |
|