[Issue 23796] New: `deprecated` attribute ignored by opDispatch

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 20 20:54:32 UTC 2023


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

          Issue ID: 23796
           Summary: `deprecated` attribute ignored by opDispatch
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: johnch_atms at hotmail.com

The following program doesn't warn about the deprecation as it should.

---
struct Bug {

  deprecated void report_() {}

  void opDispatch(string name)() { mixin(name, "_();"); }

}

void main() {
  Bug().report();
}

--


More information about the Digitalmars-d-bugs mailing list