[Bug 80] New: Cannot instantiate nested class in nested function
Thomas Kuehne
thomas-dloop at kuehne.cn
Sun Apr 2 04:59:54 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail at puremagic.com schrieb am 2006-04-02:
> class A
> {
> class B
> {
>
> }
>
> void fork()
> {
> B b = new B(); // This is okay
>
> void knife()
> {
> B b = new B(); // No 'this' for nested class B
> }
> }
> }
Added to DStress as
http://dstress.kuehne.cn/run/n/nested_class_04_A.d
http://dstress.kuehne.cn/run/n/nested_class_04_B.d
http://dstress.kuehne.cn/run/n/nested_class_04_C.d
http://dstress.kuehne.cn/run/n/nested_class_04_D.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFEL8Fe3w+/yD4P9tIRAvMiAJ4xocBUc7QrAdz9xYo/gEc5JGTp3QCgiHDC
HM8yrnMDytQ10J3ubJZWjcA=
=LreD
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-bugs
mailing list