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

14 lines
249 B
Kotlin
Vendored

// WITH_RUNTIME
class MyClass {
fun foo1(): MyClass = this
fun foo2(): MyClass = this
fun foo3(): MyClass = this
fun foo4() {
val a = MyClass()
a.foo1().foo2().foo3()
a.foo2()<caret>
a.foo3()
}
}