[Issue 11861] New: Unable to selectively import a nested symbol

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 2 21:51:35 PST 2014


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 at puremagic.com
        ReportedBy: sergei.nosov at gmail.com


--- Comment #0 from Sergei <sergei.nosov at gmail.com> 2014-01-02 21:51:33 PST ---
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: -------


More information about the Digitalmars-d-bugs mailing list