JVM IR: Avoid direct lambda invokes in inline tests
This commit is contained in:
committed by
Alexander Udalov
parent
f0760e0550
commit
2acfb3a41f
+2
-2
@@ -8,11 +8,11 @@ inline fun myrun(s: () -> Unit) {
|
||||
}
|
||||
|
||||
inline fun test(crossinline s: () -> Unit) {
|
||||
{
|
||||
val lambda = {
|
||||
val z = 1;
|
||||
myrun(s)
|
||||
val x = 1;
|
||||
}()
|
||||
}; lambda()
|
||||
}
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
+4
-4
@@ -5,7 +5,7 @@ Kotlin
|
||||
*S Kotlin
|
||||
*F
|
||||
+ 1 1.kt
|
||||
test/_1Kt$test$1
|
||||
test/_1Kt$test$lambda$1
|
||||
+ 2 1.kt
|
||||
test/_1Kt
|
||||
*L
|
||||
@@ -14,7 +14,7 @@ test/_1Kt
|
||||
*S KotlinDebug
|
||||
*F
|
||||
+ 1 1.kt
|
||||
test/_1Kt$test$1
|
||||
test/_1Kt$test$lambda$1
|
||||
*L
|
||||
13#1:19,3
|
||||
*E
|
||||
@@ -46,7 +46,7 @@ Kotlin
|
||||
*S Kotlin
|
||||
*F
|
||||
+ 1 1.kt
|
||||
test/_1Kt$test$1
|
||||
test/_1Kt$test$lambda$1
|
||||
+ 2 1.kt
|
||||
test/_1Kt
|
||||
+ 3 2.kt
|
||||
@@ -59,7 +59,7 @@ _2Kt
|
||||
*S KotlinDebug
|
||||
*F
|
||||
+ 1 1.kt
|
||||
test/_1Kt$test$1
|
||||
test/_1Kt$test$lambda$1
|
||||
*L
|
||||
13#1:19,2
|
||||
13#1:23
|
||||
|
||||
Reference in New Issue
Block a user