Files
kotlin-fork/idea/testData/inspectionsLocal/collections/uselessCallOnCollection/MapNotNullWithLambda5.kt
T

14 lines
239 B
Kotlin
Vendored

// WITH_RUNTIME
// FIX: Change call to 'map'
fun test(): List<String> {
return listOf(1, 2, 3).<caret>mapNotNull { i ->
foo {
bar(i)
}
}
}
fun <T> foo(f: () -> T): T = f()
fun bar(i: Int): String = ""