www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Bug 102] New: Forward reference nested class wheel.

http://d.puremagic.com/bugzilla/show_bug.cgi?id=102

           Summary: Forward reference nested class wheel.
           Product: D
           Version: 0.153
          Platform: Other
               URL: http://www.digitalmars.com/d/archives/digitalmars/D/bugs
                    /6614.html
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: dawid.ciezarkiewicz gmail.com


$ cat test.d
 import test2;

 class X {
 Y.NY t;
 static class NX {
 }
 }


 $ cat test2.d
 import test;

 class Y {
 X.NX nx;
 static class NY {
 }
 }


 $ dmd -c test2.d test.d
 test2.d(3): class test2.Y is forward referenced when looking for 'NY'
 test2.d(3): class test2.Y is forward referenced when looking for 'NY'
 (...)

 $ dmd -c test.d test2.d
 test.d(3): class test.X is forward referenced when looking for 'NX'
 test.d(3): class test.X is forward referenced when looking for 'NX'
 (...)


-- 
Apr 11 2006