[Issue 17989] New: [REG2.076] Confusing message on deprecated overrride
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 17 14:33:13 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17989
Issue ID: 17989
Summary: [REG2.076] Confusing message on deprecated overrride
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: radu.racariu at gmail.com
This
++++foo.d++++++
class A
{
void test()
{
}
}
class B : A
{
deprecated override void test()
{
}
}
++++++++++
Produces this message with compilers from 2.076 upwards:
Deprecation: function foo.B.test deprecated functions cannot be annotated
@disable
The message is completely misleading and probably wrong.
--
More information about the Digitalmars-d-bugs
mailing list