Java to Kotlin converter: and even more smartness about nullability
#KT-5162 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class C() {
|
||||
private fun foo(s: String?) {
|
||||
}
|
||||
|
||||
fun bar(b: Boolean) {
|
||||
foo((if (b)
|
||||
"a"
|
||||
else
|
||||
null))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user