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