Files
kotlin/compiler/testData/checkLocalVariablesTable/itInLambda.kt
Steven Schäfer efb938a7c8 (Un)mute tests
2019-07-31 11:18:44 +02:00

16 lines
354 B
Kotlin
Vendored

public fun <T> Iterable<T>.myforEach(operation: (T) -> Unit) : Unit {
for (element in this) operation(element)
}
public fun println(v: Any?) {}
fun foo1() {
(1..5).myforEach {
println(it)
}
}
// METHOD : ItInLambdaKt$foo1$1.invoke(I)V
// VARIABLE : NAME=this TYPE=LItInLambdaKt$foo1$1; INDEX=0
// VARIABLE : NAME=it TYPE=I INDEX=1