Files
kotlin-fork/idea/testData/intentions/convertToAlso/methodChainWithThisParameter.kt
T
Toshiaki Kameyama 6a4c6eacd7 Add "Convert to also" intention
#KT-28699 Fixed
2018-12-18 12:21:56 +09:00

14 lines
263 B
Kotlin
Vendored

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