JVM_IR KT-45103 optimize direct invoke for lambdas and callable refs
This commit is contained in:
committed by
teamcityserver
parent
bfb1a06f3d
commit
851980e36f
+3
-2
@@ -19,16 +19,17 @@ object B {
|
||||
// FILE: 2.kt
|
||||
import test.*
|
||||
|
||||
fun <T> eval(f: () -> T) = f()
|
||||
|
||||
fun box(): String {
|
||||
var z = "fail"
|
||||
|
||||
B.test2 {
|
||||
{ // regenerated object in inline lambda
|
||||
eval { // regenerated object in inline lambda
|
||||
A.test {
|
||||
z = "OK"
|
||||
}
|
||||
}()
|
||||
}
|
||||
}
|
||||
return z;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user