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
@@ -10,8 +10,7 @@ class A// this is a primary constructor
// this is a secondary constructor
fun create(): A {
val __ = A(1)
return __
return A(1)
} // end of secondary constructor body
}
}