class C{ auto opUnary( string op)() { return this; } } class D:C{ auto opUnary( string op)(){ return super--; } } void main(){ auto var= new D; var--; }
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 ***