Files
kotlin-fork/idea/testData/inspectionsLocal/redundantLambdaArrow/forEach.kt
T
2018-12-11 16:42:03 +03:00

8 lines
221 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
fun test() {
// We do not report "redundant arrow" here,
// because it's used to explicitly call forEach with unused lambda parameter
listOf(1, 2, 3).forEach { <caret>_ -> }
}