Java to Kotlin converter: declaring locals as var's in most of cases when needed, dropped forceLocalVariableImmutability setting
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user