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

16 lines
307 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()
with(a) {
foo2()
foo3()
}
a.foo1(this).foo2().foo3()
}
}