```
unittest {
struct X {
int[1] x;
deprecated alias x this;
}
auto y = X()[0];
}
```
The expected deprecation warning is not printed.
Comment #1 by dlang-bot — 2020-02-19T05:34:13Z
@RazvanN7 created dlang/dmd pull request #10803 "Fix Issue 20583 - no warnings printed when indexing through deprecated alias this" fixing this issue:
- Fix Issue 20583 - no warnings printed when indexing through deprecated alias this
https://github.com/dlang/dmd/pull/10803
Comment #2 by robert.schadek — 2024-12-13T19:07:07Z