Java to Kotlin converter: no intermediate __ variable in factory function if body is simple

This commit is contained in:
Valentin Kipyatkov
2014-06-25 20:34:45 +04:00
parent 467ca77854
commit e76c3d4e9e
10 changed files with 56 additions and 53 deletions
@@ -20,8 +20,7 @@ class C(arg1: Int, arg2: Int, arg3: Int) {
}
fun create(arg1: Int): C {
val __ = C(arg1, 0, 0)
return __
return C(arg1, 0, 0)
}
}
}