5f7dee4194
#KT-29099 Fixed
17 lines
229 B
Plaintext
Vendored
17 lines
229 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
|
|
class Foo {
|
|
fun foo(i: Int) {}
|
|
}
|
|
|
|
fun bar(i: Int, f: Foo) {}
|
|
|
|
fun test() {
|
|
listOf(1).forEach {
|
|
val f = Foo().also {
|
|
it.foo(1)
|
|
it.foo(2)
|
|
}
|
|
bar(it, f)
|
|
}
|
|
} |