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,7 +3,8 @@ class Z{
|
||||
fun a(s: Int) {}
|
||||
|
||||
fun b() {
|
||||
(Z::a)(Z(), 1)
|
||||
val cr = (Z::a)
|
||||
cr(Z(), 1)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
fun test() {
|
||||
1.(fun Int.() = 2)()
|
||||
val fn = fun Int.() = 2
|
||||
1.fn()
|
||||
}
|
||||
|
||||
// 1 invoke \(I\)I
|
||||
Reference in New Issue
Block a user