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
@@ -1,6 +1,6 @@
// !specifyLocalVariableTypeByDefault: true
fun foo(b: Boolean) {
val s: String? = null
var s: String? = null
if (b) {
s = "abc"
}