The following code should produce eight deprecation warnings:
```
class S {
deprecated int a;
deprecated static int b;
}
struct S2 {
deprecated int a;
deprecated static int b;
}
void main() {
S s;
alias a1 = S.a;
alias a2 = s.a;
alias b1 = S.b;
alias b2 = s.b;
S2 s2;
alias c1 = S2.a;
alias c2 = s2.a;
alias d1 = S2.b;
alias d2 = s2.b;
}
```
As of DMD 2.103, none are produced. Referencing the aliases does produce warnings, however.
Comment #1 by razvan.nitu1305 — 2023-04-05T07:59:06Z
*** Issue 23823 has been marked as a duplicate of this issue. ***
Comment #2 by robert.schadek — 2024-12-13T19:28:12Z