[Issue 17980] New: deprecated overridden function gives wrong message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 13 14:05:38 UTC 2017


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 at puremagic.com
          Reporter: b2.temp at 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.

--


More information about the Digitalmars-d-bugs mailing list