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,13 @@
fun foo() {
@Loop while (true) {
when (take()) {
1 -> continue
2 -> {
System.out.println("2")
return
}
3 -> break@Loop
}
System.out.println()
}
}