Bug 10181 – "deprecated" is ignored if used inside template

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-27T00:25:06Z
Last change time
2024-12-13T18:07:07Z
Assigned to
No Owner
Creator
Diggory
Moved to GitHub: dmd#18588 →

Comments

Comment #0 by diggsey — 2013-05-27T00:25:06Z
For example: template CustomTuple(TList...) { deprecated { alias TList CustomTuple; } } alias CustomTuple!(int, 1) MyTuple; // Should show deprecation warning There does exist a fairly simple work-around luckily: template CustomTuple(TList...) { deprecated { alias TList Temp; } alias Temp CustomTuple; } alias CustomTuple!(int, 1) MyTuple; // Correctly shows deprecation warning
Comment #1 by andrej.mitrovich — 2013-05-27T02:50:46Z
Related or dupe of Issue 9876.
Comment #2 by robert.schadek — 2024-12-13T18:07:07Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18588 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB