[Issue 419] New: Anonymous classes are not working.

Thomas Kuehne thomas-dloop at kuehne.cn
Sat Oct 21 06:37:37 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-10-09:
> http://d.puremagic.com/issues/show_bug.cgi?id=419

> interface I {
>     void get( char[] s );
> }
> class C{
>     void init(){
>         I i = new class() I {
>             void get( char[] s ){
>                 func();  // line 8
>             }
>         };
>     }
>     void func( ){ }
> }
> void main(){
> }
>
> an.d(8): this for func needs to be type C not type void*

<snip>

Added to DStress as
http://dstress.kuehne.cn/run/t/this_13_A.d
http://dstress.kuehne.cn/run/t/this_13_B.d
http://dstress.kuehne.cn/run/t/this_13_C.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFOilNLK5blCcjpWoRAlSHAJ9JX/gND++RZtDGNNHFr19Cspo89ACfUAN1
wihuTFjMM92bs4sN6xviX50=
=VZf2
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list