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
+15
-1
@@ -16,7 +16,7 @@ fun box() {
|
||||
foo(MyPair("X", "Y")) { (x, y) -> x + y }
|
||||
}
|
||||
|
||||
// EXPECTATIONS JVM_IR
|
||||
// EXPECTATIONS ClassicFrontend JVM_IR
|
||||
// test.kt:16 box:
|
||||
// test.kt:3 <init>: x:java.lang.String="X":java.lang.String, y:java.lang.String="Y":java.lang.String
|
||||
// test.kt:16 box:
|
||||
@@ -30,6 +30,20 @@ fun box() {
|
||||
// test.kt:16 box:
|
||||
// test.kt:17 box:
|
||||
|
||||
// EXPECTATIONS FIR JVM_IR
|
||||
// test.kt:16 box:
|
||||
// test.kt:3 <init>: x:java.lang.String="X":java.lang.String, y:java.lang.String="Y":java.lang.String
|
||||
// test.kt:16 box:
|
||||
// test.kt:13 foo: a:MyPair=MyPair, block:kotlin.jvm.functions.Function1=TestKt$<lambda>
|
||||
// test.kt:16 box$lambda$0:
|
||||
// test.kt:5 component1:
|
||||
// test.kt:16 box$lambda$0:
|
||||
// test.kt:9 component2:
|
||||
// test.kt:16 box$lambda$0: x:java.lang.String="O":java.lang.String
|
||||
// test.kt:13 foo: a:MyPair=MyPair, block:kotlin.jvm.functions.Function1=TestKt$<lambda>
|
||||
// test.kt:16 box:
|
||||
// test.kt:17 box:
|
||||
|
||||
// EXPECTATIONS JS_IR
|
||||
// test.kt:16 box:
|
||||
// test.kt:3 <init>: x="X":kotlin.String, y="Y":kotlin.String
|
||||
|
||||
Reference in New Issue
Block a user