Opened 13 years ago

Closed 13 years ago

Last modified 44 years ago

#515 closed bug (Wont Fix)

Incorrect source location on defaulting warnings.

Reported by: nobody Owned by: nobody
Priority: normal Milestone:
Component: Compiler Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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.

Change History (1)

comment:1 Changed 13 years ago by simonpj

  • Status changed from assigned to closed
This is already fixed in GHCi 5.0, and it's not worth fixing in earlier versions.

Good point, though.
Note: See TracTickets for help on using tickets.