[Bug 50] New: Error instantiating an inner class with a proper context
Thomas Kuehne
thomas-dloop at kuehne.cn
Sun Apr 2 04:59:56 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail at puremagic.com schrieb am 2006-03-14:
> 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
> }
Added to DStress as
http://dstress.kuehne.cn/run/n/nested_class_05_A.d
http://dstress.kuehne.cn/run/n/nested_class_05_B.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD4DBQFEL8Mh3w+/yD4P9tIRAg4yAJiBGpAyl8CZK0UDy3aa38AeIW9TAJ9OMfnC
pZBZAn2q8eSf9ix7zL6o1Q==
=pzMD
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-bugs
mailing list