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

17 lines
347 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() {
listOf<MyClass>().forEach {
val a = MyClass()
a.foo1(it).foo2().foo3()
a.foo2()<caret>
a.foo3()
}
}
}