[Bug 50] New: Error instantiating an inner class with a proper context

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 14 09:54:06 PST 2006


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

           Summary: Error instantiating an inner class with a proper context
           Product: D
           Version: 0.149
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: daiphoenix at lycos.com


The following gives a compiler error (as in the comment), despite the proper
context pointer (this) being available:

class Outer
{
  class Inner { }
}

void func()
{
  Outer o = new Outer; 
  Outer.Inner oi = new o.Inner; // Error: no 'this' for nested class Inner
}


-- 




More information about the Digitalmars-d-bugs mailing list