Convert to scope function: also convert binary expression

#KT-30228 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-03-07 18:48:46 +09:00
committed by Mikhail Glukhikh
parent e340af51df
commit 8728bc0820
15 changed files with 248 additions and 18 deletions
@@ -0,0 +1,13 @@
// IS_APPLICABLE: false
class A {
fun foo() {}
fun bar(lambda: () -> Unit = {}): Int = 1
}
fun baz(a: A): Int = 1
fun test() {
val a = A()
a.foo()
<caret>a.bar {} + baz(a)
a.foo()
}