Bug 20583 – no warnings printed when indexing through deprecated alias this

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-02-16T01:09:12Z
Last change time
2024-12-13T19:07:07Z
Keywords
diagnostic, pull
Assigned to
No Owner
Creator
elpenguino+D
Moved to GitHub: dmd#19665 →

Comments

Comment #0 by elpenguino+D — 2020-02-16T01:09:12Z
``` unittest { struct X { int[1] x; deprecated alias x this; } auto y = X()[0]; } ``` The expected deprecation warning is not printed.
Comment #1 by dlang-bot — 2020-02-19T05:34:13Z
@RazvanN7 created dlang/dmd pull request #10803 "Fix Issue 20583 - no warnings printed when indexing through deprecated alias this" fixing this issue: - Fix Issue 20583 - no warnings printed when indexing through deprecated alias this https://github.com/dlang/dmd/pull/10803
Comment #2 by robert.schadek — 2024-12-13T19:07:07Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19665 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB