Implement an intention converting several calls with same receiver to with/apply/run #KT-12183 Fixed

This commit is contained in:
shiraji
2017-02-04 09:03:39 +09:00
committed by Mikhail Glukhikh
parent c2e5fc5215
commit 0e5603f644
71 changed files with 1352 additions and 0 deletions
@@ -0,0 +1,15 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
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()
}
}