Java to Kotlin converter: fixed some bugs in switch statement conversion

This commit is contained in:
Valentin Kipyatkov
2014-07-10 18:49:04 +04:00
parent 2df60a27c8
commit d5f0af15c3
4 changed files with 66 additions and 19 deletions
@@ -0,0 +1,16 @@
//file
public class C {
public static void main(String[] args) {
switch (args.length) {
case 1: {
int a = 1;
System.out.print("1");
}
case 2: {
int a = 2;
System.out.print("2");
}
}
}
}