Check switch block.
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
0c2b2c9df5
commit
725b60cb88
|
@ -0,0 +1,20 @@
|
||||||
|
class Program {
|
||||||
|
|
||||||
|
void main() {
|
||||||
|
int $a = 1;
|
||||||
|
switch($a) {
|
||||||
|
case 0:
|
||||||
|
print("very bad\n");
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
print("very good\n");
|
||||||
|
case 2:
|
||||||
|
print("good\n");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
print("bad");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,2 @@
|
||||||
|
very good
|
||||||
|
good
|
Loading…
Reference in New Issue