Java to Kotlin converter: and even more smartness about nullability

#KT-5162 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-06-04 18:38:09 +04:00
parent d49b4f86fd
commit 81caaaf579
19 changed files with 267 additions and 32 deletions
@@ -0,0 +1,11 @@
trait I {
public fun getString(): String?
}
class C() {
fun foo(i: I) {
if (i.getString() == null) {
println("null")
}
}
}