Bug 17989 – [REG2.076] Confusing message on deprecated overrride
Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2017-11-17T14:33:13Z
Last change time
2020-03-21T03:56:40Z
Assigned to
No Owner
Creator
Radu Racariu
Comments
Comment #0 by radu.racariu — 2017-11-17T14:33:13Z
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.