April 05, 2023 [Issue 23828] New: Deprecation warnings on deprecated variables with deprecated types | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23828 Issue ID: 23828 Summary: Deprecation warnings on deprecated variables with deprecated types Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: elpenguino+D@gmail.com This code currently (as of DMD 2.103.0) produces two deprecation warnings, instead of zero: ``` deprecated struct Foo {} deprecated Foo foo; ``` Declaring a variable of type Foo within other contexts, such as deprecated functions or other deprecated aggregate types, produces an expected zero warnings. -- |
Copyright © 1999-2021 by the D Language Foundation