Convert to scope function: also convert binary expression
#KT-30228 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
e340af51df
commit
8728bc0820
+13
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
class A {
|
||||
fun foo() {}
|
||||
fun bar(): Int = 1
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val a = A().apply {
|
||||
foo()
|
||||
bar() + 1
|
||||
foo()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user