[Issue 8477] New: [2.060 beta] Strange error calling member func from overridden Exception::toString()
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 30 15:35:05 PDT 2012
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: nobody at puremagic.com
ReportedBy: cbkbbejeap at mailinator.com
--- Comment #0 from Nick Sabalausky <cbkbbejeap at 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: -------
More information about the Digitalmars-d-bugs
mailing list