[Issue 13883] New: can't alias elements of typetuple
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Dec 21 06:26:32 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13883
Issue ID: 13883
Summary: can't alias elements of typetuple
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: vlevenfeld at gmail.com
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
--
More information about the Digitalmars-d-bugs
mailing list