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,15 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
class MyClass {
fun foo1() = Unit
fun foo2(a: MyClass) = Unit
fun foo3() = Unit
fun foo4(it: MyClass) {
val a = MyClass()
a.foo1()
a.foo2(it)
a.foo3()<caret>
}
}