[Issue 4497] New: inexpressive error message for const object method

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 23 18:16:24 PDT 2010


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: nobody at puremagic.com
        ReportedBy: mrmocool at gmx.de


--- Comment #0 from Trass3r <mrmocool at 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: -------


More information about the Digitalmars-d-bugs mailing list