Bug 13883 – can't alias elements of typetuple

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2014-12-21T14:26:00Z
Last change time
2015-03-15T19:19:58Z
Keywords
rejects-valid
Assigned to
nobody
Creator
vlevenfeld

Comments

Comment #0 by vlevenfeld — 2014-12-21T14:26:32Z
declarations in first scope compile, alias Y in second scope causes an error. struct Z {alias A = void;} { alias X = Z; alias Y = X.A; } { alias X = TypeTuple!(Z); alias Y = X[0].A; // source/main.d(28): Error: semicolon expected to close alias declaration } compile with dmd git head, built yesterday
Comment #1 by clem — 2015-03-15T19:19:58Z
*** This issue has been marked as a duplicate of issue 1215 ***