www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17989] New: [REG2.076] Confusing message on deprecated


          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 puremagic.com
          Reporter: radu.racariu gmail.com



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

The message is completely misleading and probably wrong.

Nov 17 2017