www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11861] New: Unable to selectively import a nested symbol


           Summary: Unable to selectively import a nested symbol
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: sergei.nosov gmail.com

--- Comment #0 from Sergei <sergei.nosov gmail.com> 2014-01-02 21:51:33 PST ---

In a.d

static struct A
    alias string S;

In b.d

import a : B = A.S;

void main() {}

Module b.d doesn't compile, issuing
b.d(1): Error: ';' expected
b.d(1): Error: no identifier for declarator S
on the 1st line

Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 02 2014