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

           Summary: inexpressive error message for const object method
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: mrmoc...@gmx.de


--- Comment #0 from Trass3r <mrmoc...@gmx.de> 2010-07-23 18:16:17 PDT ---
class Foo
{
    void getX()
    {}
}

const Foo f;

void main()
{
    f.getX();
}

Error: function constobj.Foo.getX () is not callable using argument types ()
const

This error message could be more expressive to show that getX must be marked as
const to make it work.

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

Reply via email to