[Issue 15555] New: [Reg 2.070.0-b1] Hidden error cause by Throwable.message

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jan 11 05:45:50 PST 2016


https://issues.dlang.org/show_bug.cgi?id=15555

          Issue ID: 15555
           Summary: [Reg 2.070.0-b1] Hidden error cause by
                    Throwable.message
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: doob at me.com

Compiling Tango with DMD 2.070.0-b1 causes the following error:

tango/text/xml/SaxParser.d(808,8): Error: class
tango.text.xml.SaxParser.SAXException use of object.Throwable.message() is
hidden by SAXException; use 'alias message = Throwable.message;' to introduce
base class overload set

The error is due to the new method "message" in Throwable, which is causing a
conflict with an already existing method in a subclass [1]. PR that added the
new method [2].

[1]
https://github.com/SiegeLord/Tango-D2/blob/d2port/tango/text/xml/SaxParser.d#L861
[2]
https://github.com/D-Programming-Language/druntime/pull/1445#issuecomment-170530377

--


More information about the Digitalmars-d-bugs mailing list