Java to Kotlin converter: and even more smartness about nullability
#KT-5162 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
//file
|
||||
interface I {
|
||||
String getString();
|
||||
}
|
||||
|
||||
class C {
|
||||
void foo(I i) {
|
||||
if (i.getString() == null) {
|
||||
println("null")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user