Java to Kotlin converter: declaring locals as var's in most of cases when needed, dropped forceLocalVariableImmutability setting
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// !specifyLocalVariableTypeByDefault: true
|
||||
fun foo(b: Boolean) {
|
||||
val s: String? = null
|
||||
var s: String? = null
|
||||
if (b) {
|
||||
s = "abc"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user