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

           Summary: [2.060 beta] Strange error calling member func from
                    overridden Exception::toString()
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: cbkbbej...@mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbej...@mailinator.com> 2012-07-30 
15:35:04 PDT ---
class Foo : Exception
{
    this() { super(""); }

    int line()
    {
        return 0;
    }

    override string toString()
    {
        line();
        return "";
    }
}

Worked on 2.059. On 2.060 beta:

test.d(12): Error: function test.Foo.line ()
is not callable using argument types () const

Problem goes away if Foo is *not* derived from Exception.

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

Reply via email to