Files
kotlin-fork/idea/testData/intentions/convertToWith/methodChainWithItParameter.kt
T

15 lines
306 B
Kotlin
Vendored

// WITH_RUNTIME
// IS_APPLICABLE: false
class MyClass {
fun foo1(a: MyClass): MyClass = this
fun foo2(): MyClass = this
fun foo3(): MyClass = this
fun foo4(a: MyClass) {
listOf<MyClass>().forEach {
a.foo1(it).foo2().foo3()
a.foo2()<caret>
}
}
}