June 02, 2023 [Issue 23954] New: [REG2.094.2] Deprecated alias to method no longer triggers deprecation | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: dlang-bugzilla@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 -- |
Copyright © 1999-2021 by the D Language Foundation