Bug 2598 – Alias declaration doesn't work for a tuple field

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2009-01-21T00:55:00Z
Last change time
2014-02-14T20:35:48Z
Keywords
rejects-valid
Assigned to
nobody
Creator
andrei

Comments

Comment #0 by andrei — 2009-01-21T00:55:02Z
This doesn't compile and it should: struct S(T...) { T field; alias field[0] a; } void main() { S!(int, string) s; }
Comment #1 by andrej.mitrovich — 2013-02-04T17:44:13Z
Works since 2.061.