[Issue 15839] this.outer is of wrong type

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Mar 27 13:33:56 PDT 2016


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

--- Comment #3 from Jacob Carlborg <doob at me.com> ---
(In reply to Kenji Hara from comment #1)

> > The property .outer used in a nested class gives the this pointer to its enclosing class. If the enclosing context is not a class, the .outer will give the pointer to it as a void* type.
> 
> It means `this.outer` in `run()` member function should represent the frame
> of 'start' function. Actually the generated code is following the spec, but
> front-end had incorrectly typed 'this.outer' like an AnimatedProgress class.

So it's not representing the this reference of the outer class anymore? Is it
possible to get that behavior somehow?

This is a huge regression for DWT.

--


More information about the Digitalmars-d-bugs mailing list