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: [email protected]
Reporter: [email protected]
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
--