Java to Kotlin converter: even more smartness about nullability
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// !specifyLocalVariableTypeByDefault: true
|
||||
fun foo(b: Boolean) {
|
||||
val s: String? = "abc"
|
||||
if (b) {
|
||||
s = null
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user