JVM IR: Avoid direct lambda invokes in inline tests
This commit is contained in:
committed by
Alexander Udalov
parent
f0760e0550
commit
2acfb3a41f
Vendored
+1
-1
@@ -18,7 +18,7 @@ class B(val o: String, val k: String) {
|
||||
}
|
||||
|
||||
fun test(f: (String) -> Unit) {
|
||||
testNested { it -> { f(it + k) }() }
|
||||
testNested { it -> { f(it + k) }.let { it() } }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user