Files
kotlin-fork/idea/testData/inspections/forEachParameterNotUsed/test.kt
T
2018-08-13 19:02:53 +03:00

11 lines
354 B
Kotlin
Vendored

fun test() {
val items = listOf<Any>()
items.forEach { }
items.forEach { item -> }
items.forEach { doSomething(it) }
items.forEach { item -> doSomething(item) }
items.forEach { items.forEach { doSomething(it) } }
items.forEach { items.forEach { thing -> doSomething(it); doSomething(thing) } }
}
fun doSomething(item: Any) {}