bd467f39d6
#KT-28698 Fixed
16 lines
199 B
Plaintext
Vendored
16 lines
199 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
|
|
class Foo {
|
|
fun foo(i: Int) {}
|
|
}
|
|
|
|
fun bar(i: Int, f: Foo) {}
|
|
|
|
fun test() {
|
|
val f2 = Foo()
|
|
val f = Foo().also {
|
|
it.foo(1)
|
|
bar(2, it)
|
|
}
|
|
bar(3, f2)
|
|
} |