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: [email protected]
Reporter: [email protected]
////////////////// 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
--