Java to Kotlin converter: refactoring and fixing switch conversion
#KT-5390 Fixed
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
fun foo() {
|
||||
@Loop while (true) {
|
||||
when (take()) {
|
||||
1 -> continue
|
||||
2 -> {
|
||||
System.out.println("2")
|
||||
return
|
||||
}
|
||||
3 -> break@Loop
|
||||
}
|
||||
System.out.println()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user