I have a problem with my haxe code, So I have the following code :
var t : String = switch( id ) {
case 1 : Std.random( 2 ) == 0 ? Texts.list.0 : Texts.list.1;
case 2 : Std.random( 2 ) == 0 ? Texts.list.2 : Texts.list.3;
default: "";
}
For the default I get an error : This pattern is unused
.
Can you help me please? Thx in advance