June 05, 2023 [Issue 23970] New: [REG2.097.0] Deprecation not emitted when selectively importing deprecated function | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23970 Issue ID: 23970 Summary: [REG2.097.0] Deprecation not emitted when selectively importing deprecated function Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: accepts-invalid Severity: regression Priority: P4 Component: dmd Assignee: nobody@puremagic.com Reporter: dlang-bugzilla@thecybershadow.net This isn't so bad because a deprecation is still emitted when the function is used. But still, it should probably be emitted on a selective import too. //////////////// a.d //////////////// deprecated int var; deprecated void fun() {} /////////////// test.d ////////////// // import a : var; // OK, deprecation import a : fun; // No deprecation? ///////////////////////////////////// Introduced in https://github.com/dlang/dmd/pull/12442 -- |
Copyright © 1999-2021 by the D Language Foundation