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