Implement an intention converting several calls with same receiver to with/apply/run #KT-12183 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
c2e5fc5215
commit
0e5603f644
@@ -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(a: MyClass) {
|
||||
listOf<MyClass>().forEach {
|
||||
a.foo1(it).foo2().foo3()
|
||||
a.foo2()<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user