www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15519] New: Circular imports leads to fwd ref error with

https://issues.dlang.org/show_bug.cgi?id=15519

          Issue ID: 15519
           Summary: Circular imports leads to fwd ref error with aliased
                    imports
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: bugzilla digitalmars.com

--- y.d
import x: NS = ns;              // fails
//import x; alias x.ns NS;      // works

extern(C++, ns)
{
 class Y { NS.X v; }
}

--- x.d
import y;
extern(C++, ns)
//struct ns
{
 class X { y.ns.Y v; }
}

---

dmd -c y.d

--
Jan 06