Enable lightweight lambdas (aka invokedynamic) since 2.0
#KT-45375 Fixed #KT-58173 Open
This commit is contained in:
committed by
Space Team
parent
b1b33475fa
commit
3f034e8b67
@@ -8,7 +8,7 @@ fun box() {
|
||||
foo(A("O", 123)) { (x, y) -> x + y }
|
||||
}
|
||||
|
||||
// EXPECTATIONS JVM_IR
|
||||
// EXPECTATIONS ClassicFrontend JVM_IR
|
||||
// test.kt:8 box:
|
||||
// test.kt:3 <init>: x:java.lang.String="O":java.lang.String, y:int=123:int
|
||||
// test.kt:8 box:
|
||||
@@ -18,6 +18,16 @@ fun box() {
|
||||
// test.kt:8 box:
|
||||
// test.kt:9 box:
|
||||
|
||||
// EXPECTATIONS FIR JVM_IR
|
||||
// test.kt:8 box:
|
||||
// test.kt:3 <init>: x:java.lang.String="O":java.lang.String, y:int=123:int
|
||||
// test.kt:8 box:
|
||||
// test.kt:5 foo: a:A=A, block:kotlin.jvm.functions.Function1=TestKt$<lambda>
|
||||
// test.kt:8 box$lambda$0:
|
||||
// test.kt:5 foo: a:A=A, block:kotlin.jvm.functions.Function1=TestKt$<lambda>
|
||||
// test.kt:8 box:
|
||||
// test.kt:9 box:
|
||||
|
||||
// EXPECTATIONS JS_IR
|
||||
// test.kt:8 box:
|
||||
// test.kt:3 <init>: x="O":kotlin.String, y=123:number
|
||||
|
||||
Reference in New Issue
Block a user