[Issue 15839] this.outer is of wrong type
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Mon Mar 28 12:05:32 PDT 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15839
--- Comment #5 from Jacob Carlborg <doob at me.com> ---
(In reply to Kenji Hara from comment #4)
> However... of course it's not stable. And as far as I know, there's no way
> to know the number of chains up to reach wanting enclosing scope.
So the best approach would be to pass in the outer reference to the constructor
when creating the anonymous class and use that instead of "this.outer"?
--
    
    
More information about the Digitalmars-d-bugs
mailing list