Bug 23954 – [REG2.094.2] Deprecated alias to method no longer triggers deprecation

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-06-02T11:04:23Z
Last change time
2023-06-02T11:28:48Z
Keywords
accepts-invalid
Assigned to
No Owner
Creator
Vladimir Panteleev

Comments

Comment #0 by dlang-bugzilla — 2023-06-02T11:04:23Z
////////////////// 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
Comment #1 by default_357-line — 2023-06-02T11:26:27Z
Seems to already be fixed on master?
Comment #2 by default_357-line — 2023-06-02T11:28:48Z
Ah, fixed in 2.104.0 per https://issues.dlang.org/show_bug.cgi?id=23822 . *** This issue has been marked as a duplicate of issue 23822 ***