Java to Kotlin converter: even more smartness about nullability

This commit is contained in:
Valentin Kipyatkov
2014-06-04 17:35:46 +04:00
parent 15ffb6768c
commit d49b4f86fd
29 changed files with 273 additions and 50 deletions
@@ -0,0 +1,7 @@
// !specifyLocalVariableTypeByDefault: true
fun foo(b: Boolean) {
val s: String? = null
if (b) {
s = "abc"
}
}