[Issue 23970] New: [REG2.097.0] Deprecation not emitted when selectively importing deprecated function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 5 07:54:15 UTC 2023
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 at puremagic.com
Reporter: dlang-bugzilla at 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
--
More information about the Digitalmars-d-bugs
mailing list