[Issue 14363] [SDC] Error with inheriting nested classes in nested functions

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Apr 12 14:03:15 PDT 2015


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

--- Comment #8 from deadalnix <deadalnix at gmail.com> ---
(In reply to Kenji Hara from comment #7)
> (In reply to deadalnix from comment #6)
> > (In reply to Shammah Chancellor from comment #5)
> > > I'm not sure about that part of SDC.  I will investigate and see if
> > > deadalnix has some input here.
> > 
> > SDC does it by sticking one context in the base and one context in the child.
> 
> It's definitely different. dmd inserts at most only one context over the all
> derived classes. The second context pointer in the child class need to be
> error in SDC.

I see no reason for this limitation.

--


More information about the Digitalmars-d-bugs mailing list