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: [email protected]
Reporter: [email protected]
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();
}
--
