Files
kotlin-fork/idea/testData/intentions/convertToScope/convertToWith/methodChainWithItParameter.kt.after
T
2019-02-01 12:13:05 +03:00

16 lines
315 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) {
listOf<MyClass>().forEach {
with(a) {
foo1(it).foo2().foo3()
foo2()
}
}
}
}