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

14 lines
225 B
Plaintext
Vendored

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