Outer class reference oddity?

Arafel er.krali at gmail.com
Tue Aug 20 18:07:52 UTC 2024


On 20/8/24 19:11, Paul Backus wrote:

> 
> It works if I change the erroring line to access value2 through the 
> outer pointer [1] explicitly:
> 
>      writeln("value2 from Outer2: ", this.outer.value2); // ok
> 
> So yes, this is definitely a bug.
> 
> [1]: https://dlang.org/spec/class.html#outer-property

Perhaps related? https://issues.dlang.org/show_bug.cgi?id=16215

I remember having hit this issue, I certainly have instances of 
"this.outer" in my code.


More information about the Digitalmars-d mailing list