Files
kotlin-fork/idea/testData/inspectionsLocal/complexRedundantLet/functionCallOnSafeCall.kt
T

9 lines
164 B
Kotlin
Vendored

// WITH_RUNTIME
// PROBLEM: none
fun foo(s: String, i: Int) = s.length + i
fun test() {
val nullable: String? = null
nullable?.let<caret> { foo(it, 1) }
}