JVM IR: Avoid direct lambda invokes in inline tests
This commit is contained in:
committed by
Alexander Udalov
parent
f0760e0550
commit
2acfb3a41f
Vendored
+2
-2
@@ -9,7 +9,7 @@ class A {
|
||||
f()
|
||||
s
|
||||
v = "OK"
|
||||
} ()
|
||||
}.let { it() }
|
||||
}
|
||||
|
||||
inline fun g2(crossinline f: () -> Unit) {
|
||||
@@ -19,7 +19,7 @@ class A {
|
||||
s
|
||||
v = "OK"
|
||||
}
|
||||
}.run ()
|
||||
}.run()
|
||||
}
|
||||
|
||||
inline fun use() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
inline fun test(crossinline l: () -> String) {
|
||||
{
|
||||
l()
|
||||
}()
|
||||
}.let { it() }
|
||||
|
||||
object {
|
||||
val z = l() //constuctor
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@ inline fun test(crossinline s: () -> Unit) {
|
||||
{
|
||||
{
|
||||
s()
|
||||
}()
|
||||
}()
|
||||
}.let { it() }
|
||||
}.let { it() }
|
||||
}
|
||||
|
||||
// 3 INNERCLASS Kt10259_2Kt\$test\$1 null
|
||||
|
||||
+2
-2
@@ -15,8 +15,8 @@ inline fun test(crossinline s: () -> Unit) {
|
||||
{
|
||||
{
|
||||
s()
|
||||
}()
|
||||
}()
|
||||
}.let { it() }
|
||||
}.let { it() }
|
||||
}
|
||||
|
||||
// 2 INNERCLASS Kt10259_3Kt\$box\$\$inlined\$test\$1\s
|
||||
|
||||
Reference in New Issue
Block a user