http://d.puremagic.com/issues/show_bug.cgi?id=5588

           Summary: Wrong line number
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: samu...@voliacable.com


--- Comment #0 from Max Samukha <samu...@voliacable.com> 2011-02-15 01:50:04 
PST ---
enum x = 1; //line 1

void* foo()
{
    return x; //line 2
}

void main()
{
}

The error (Error: cannot implicitly convert expression (1) of type int to
void*) is reported to be on line 1 instead of line 2. 

Pretty confusing.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to