JVM_IR KT-45103 optimize direct invoke for lambdas and callable refs
This commit is contained in:
committed by
teamcityserver
parent
bfb1a06f3d
commit
851980e36f
+10
-6
@@ -1,13 +1,17 @@
|
||||
// FILE: test.kt
|
||||
|
||||
fun <T> eval(f: () -> T) = f()
|
||||
|
||||
fun box() {
|
||||
{
|
||||
eval {
|
||||
"OK"
|
||||
}()
|
||||
}
|
||||
}
|
||||
|
||||
// LINENUMBERS
|
||||
// test.kt:4 box
|
||||
// test.kt:5 invoke
|
||||
// test.kt:4 box
|
||||
// test.kt:7 box
|
||||
// test.kt:6 box
|
||||
// test.kt:3 eval
|
||||
// test.kt:7 invoke
|
||||
// test.kt:3 eval
|
||||
// test.kt:6 box
|
||||
// test.kt:9 box
|
||||
Reference in New Issue
Block a user