Java to Kotlin converter: more smartness about nullability

This commit is contained in:
Valentin Kipyatkov
2014-06-06 21:26:25 +04:00
parent e947ad7294
commit 0695f6b3d7
18 changed files with 143 additions and 10 deletions
@@ -0,0 +1,12 @@
trait I {
public fun getString(): String?
}
class C() {
fun foo(i: I) {
val result = i.getString()
if (result != null) {
print(result)
}
}
}