Bug 13540 – Meaningless alias declaration is accepted

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-09-27T08:09:29Z
Last change time
2024-12-13T18:29:53Z
Keywords
accepts-invalid
Assigned to
No Owner
Creator
Kenji Hara
Moved to GitHub: dmd#18892 →

Comments

Comment #0 by k.hara.pg — 2014-09-27T08:09:29Z
The alias declaration: alias int[] f(TemplateTypeParam)(int arg); is just treated as: alias int[] f(int arg); static assert(is(f* == int[] function(int)); and the redundant template parameter list is just ignored.
Comment #1 by robert.schadek — 2024-12-13T18:29:53Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18892 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB