[Issue 23954] New: [REG2.094.2] Deprecated alias to method no longer triggers deprecation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 2 11:04:23 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23954
Issue ID: 23954
Summary: [REG2.094.2] Deprecated alias to method no longer
triggers deprecation
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: accepts-invalid
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: dlang-bugzilla at thecybershadow.net
////////////////// test.d /////////////////
struct S
{
void fun() {}
deprecated alias deprecatedAlias = fun;
}
void main()
{
S s;
s.deprecatedAlias();
}
///////////////////////////////////////////
This should cause a deprecation warning, and did so before 2.094.2.
Introduced by https://github.com/dlang/dmd/pull/11940
--
More information about the Digitalmars-d-bugs
mailing list