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,15 @@
// WITH_RUNTIME
class A {
infix fun foo(x: Any) = A()
}
fun main() {
val a = A()
a.run {
foo(0)
foo(0)
foo(0) foo 0
foo(0)
foo(0)
}
}