[Issue 596] New: Support array, arrayliteral and struct in switch and case

Thomas Kuehne thomas-dloop at kuehne.cn
Sat Nov 25 10:02:26 PST 2006


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

d-bugmail at puremagic.com schrieb am 2006-11-25:
> http://d.puremagic.com/issues/show_bug.cgi?id=596

> void main(){

<snip>

>   ubyte[] t2 = [0,1,2];
>   switch(t2){
>     case [0,1,2]://arrayliteral
>       break;
>     default:
>   }
> }

Added to DStress as
http://dstress.kuehne.cn/run/c/case_05_A.d
http://dstress.kuehne.cn/run/c/case_05_B.d
http://dstress.kuehne.cn/run/c/case_05_C.d
http://dstress.kuehne.cn/run/s/switch_23_A.d
http://dstress.kuehne.cn/run/s/switch_23_B.d
http://dstress.kuehne.cn/run/s/switch_23_C.d

Thomas


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

iD8DBQFFaIn9LK5blCcjpWoRAmSzAKCoAbyM7GpWeT91ns333aGZOpS/pQCffTPD
kFNVqQQA11CBcTe8BRZfUS4=
=XNA6
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list