Files
kotlin-fork/compiler/testData/checkLocalVariablesTable/itInLambda.kt
T
Dmitry Petrov a47eaa2cb5 Change part class naming scheme
update tests depending on part class naming
2015-09-07 16:28:42 +03:00

14 lines
322 B
Kotlin
Vendored

public fun <T> Iterable<T>.myforEach(operation: (T) -> Unit) : Unit {
for (element in this) operation(element)
}
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