Why can we do
string s;
switch(s)
{
case "blah":
break;
default:
}
but not
byte[] a;
switch(a)
{
case [cast(byte)1,2,3]:
break;
default:
}
?
Why can we do
string s;
switch(s)
{
case "blah":
break;
default:
}
but not
byte[] a;
switch(a)
{
case [cast(byte)1,2,3]:
break;
default:
}
?