www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17980] New: deprecated overridden function gives wrong message

https://issues.dlang.org/show_bug.cgi?id=17980

          Issue ID: 17980
           Summary: deprecated overridden function gives wrong message
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com

class C{
    void foo(){}
}

class D: C{
    deprecated override void foo(){}
}

outputs:

Deprecation: function temp_7F38B91F90F0.D.foo overridden functions cannot be
annotated  disable

should be:

Deprecation: function temp_7F38B91F90F0.D.foo overridden functions cannot be
annotated deprecated

Error made by me in:
https://github.com/dlang/dmd/commit/9441e5a68bf473d7780bb2cab0c993f6819dc9ad

That i'll fix ASAP.

--
Nov 13