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

14 lines
282 B
Kotlin
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()
a.foo2()<caret>
a.foo3()
a.foo1(this).foo2().foo3()
}
}