Files
kotlin-fork/idea/testData/inspectionsLocal/complexRedundantLet/functionCallOnSafeCall.kt
T
2019-06-25 14:37:04 +07:00

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) }
}