Files
kotlin-fork/idea/testData/inspectionsLocal/branched/ifThenToSafeAccess/call4.kt
T
2018-08-15 12:36:01 +03:00

14 lines
222 B
Kotlin
Vendored

// WITH_RUNTIME
// HIGHLIGHT: INFORMATION
fun maybeFoo(): String? {
return "foo"
}
fun convert(x: String, y: Int) = ""
fun foo(it: Int) {
val foo = maybeFoo()
<caret>if (foo == null) else convert(foo, it)
}