Files
kotlin-fork/idea/testData/intentions/convertToScope/convertToRun/methodChainWithThisParameter.kt.after
T
2019-02-19 10:41:20 +03:00

16 lines
305 B
Plaintext
Vendored

// WITH_RUNTIME
class MyClass {
fun foo1(a: MyClass): MyClass = this
fun foo2(): MyClass = this
fun foo3(): MyClass = this
fun foo4(a: MyClass) {
a.foo1(this).foo2().foo3()
a.run {
foo2()
foo3()
}
a.foo1(this).foo2().foo3()
}
}