Java to Kotlin converter: refactoring and fixing switch conversion
#KT-5390 Fixed
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user