JVM_IR KT-45103 optimize direct invoke for lambdas and callable refs
This commit is contained in:
committed by
teamcityserver
parent
bfb1a06f3d
commit
851980e36f
+6
-4
@@ -1,13 +1,15 @@
|
||||
fun <T> eval(fn: () -> T) = fn()
|
||||
|
||||
class A {
|
||||
fun bar(): Any {
|
||||
return {
|
||||
{
|
||||
return eval {
|
||||
eval {
|
||||
class Local : Inner() {
|
||||
override fun toString() = foo()
|
||||
}
|
||||
Local()
|
||||
}()
|
||||
}()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
open inner class Inner
|
||||
|
||||
Vendored
+6
-4
@@ -1,12 +1,14 @@
|
||||
fun <T> eval(fn: () -> T) = fn()
|
||||
|
||||
class A {
|
||||
fun bar(): Any {
|
||||
return {
|
||||
{
|
||||
return eval {
|
||||
eval {
|
||||
object : Inner() {
|
||||
override fun toString() = foo()
|
||||
}
|
||||
}()
|
||||
}()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
open inner class Inner
|
||||
|
||||
Reference in New Issue
Block a user