Java to Kotlin converter: refactoring and fixing switch conversion

#KT-5390 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-07-04 23:29:52 +04:00
parent 6bd5a12498
commit 3ccd8839ff
14 changed files with 164 additions and 146 deletions
@@ -0,0 +1,12 @@
//method
void foo() {
Loop:
while(true) {
switch(take()) {
case 1: continue;
case 2: System.out.println("2"); return;
case 3: break Loop;
}
System.out.println();
}
}