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