16 lines
268 B
Plaintext
Vendored
16 lines
268 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
|
|
class MyClass {
|
|
fun foo1() = Unit
|
|
fun foo2(a: MyClass) = Unit
|
|
fun foo3() = Unit
|
|
|
|
fun foo4(it: MyClass) {
|
|
val a = MyClass().also {
|
|
it.foo1()
|
|
it.foo3()
|
|
}
|
|
a.foo2(it)
|
|
a.foo3()
|
|
}
|
|
} |