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,12 @@
// WITH_RUNTIME
class A {
fun foo() {}
}
fun baz(a: A): Int = 1
fun test() {
val a = A()
a.foo()
1 + <caret>baz(a)
a.foo()
}