www.digitalmars.com         C & C++   DMDScript  

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

https://d.puremagic.com/issues/show_bug.cgi?id=11861

           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



Consider,

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