← Back to index
|
Original Bugzilla link
Bug 14589 – Wrongly signalling deprecation
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2015-05-15T17:59:00Z
Last change time
2015-05-16T18:46:55Z
Assigned to
nobody
Creator
svv1999
Comments
Comment #0
by svv1999 — 2015-05-15T17:59:14Z
class C{ auto opUnary( string op)() { return this; } } class D:C{ auto opUnary( string op)(){ return super--; } } void main(){ auto var= new D; var--; }
Comment #1
by dlang-bugzilla — 2015-05-16T18:46:55Z
Compiles fine with git HEAD. In 2.066.1, this code did not compile with an error. The error was turned into a deprecation by
https://github.com/D-Programming-Language/dmd/pull/4463.
The deprecation was fixed by
https://github.com/D-Programming-Language/dmd/pull/4522.
This looks like a duplicate of Issue 14343. *** This issue has been marked as a duplicate of issue 14343 ***