This code produces no deprecation warnings:
```
struct S {
deprecated enum value1 = 5;
}
alias shouldWarn = S.value1;
```
The shouldWarn alias should produce a warning. Referencing the alias does produce a deprecation warning, however. Aliases to deprecated non-member enums also produce warnings as expected.
Comment #1 by robert.schadek — 2024-12-13T19:28:11Z