JVM IR: Avoid direct lambda invokes in inline tests
This commit is contained in:
committed by
Alexander Udalov
parent
f0760e0550
commit
2acfb3a41f
+1
-1
@@ -21,7 +21,7 @@ inline fun vBox(crossinline action: () -> Unit) {
|
||||
contract {
|
||||
callsInPlace(action, InvocationKind.EXACTLY_ONCE)
|
||||
}
|
||||
return { action() }()
|
||||
return { action() }.let { it() }
|
||||
}
|
||||
|
||||
inline fun button(onAction: () -> Unit) {
|
||||
|
||||
Reference in New Issue
Block a user