Convert to scope function: refactor

This commit is contained in:
Toshiaki Kameyama
2018-12-18 16:25:17 +03:00
committed by Mikhail Glukhikh
parent 0501a108c0
commit f15c8f78fa
108 changed files with 592 additions and 541 deletions
@@ -0,0 +1,14 @@
// 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()
}
}