www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13883] New: can't alias elements of typetuple

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 puremagic.com
          Reporter: vlevenfeld 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

--
Dec 21 2014