Java to Kotlin converter: declaring locals as var's in most of cases when needed, dropped forceLocalVariableImmutability setting

This commit is contained in:
Valentin Kipyatkov
2014-06-24 20:04:07 +04:00
parent 63ebfe2c03
commit d3b773c0cd
29 changed files with 31 additions and 52 deletions
@@ -4,7 +4,7 @@ trait I {
class C() {
fun foo(i: I, b: Boolean) {
val result: String? = i.getString()
var result: String? = i.getString()
if (b) result = null
if (result != null) {
print(result)