5f7dee4194
#KT-29099 Fixed
16 lines
209 B
Kotlin
Vendored
16 lines
209 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
class Foo {
|
|
fun foo(i: Int) {}
|
|
}
|
|
|
|
fun bar(i: Int, f: Foo) {}
|
|
|
|
fun test() {
|
|
listOf(1).forEach {
|
|
val f = Foo()<caret>
|
|
f.foo(1)
|
|
f.foo(2)
|
|
bar(it, f)
|
|
}
|
|
} |