JVM_IR KT-46562 don't use LambdaMetafactory for Serializable SAMs

TODO support serializable lambdas creation with LambdaMetafactory
This commit is contained in:
Dmitry Petrov
2021-05-10 14:52:46 +03:00
parent bdfc879f00
commit ac0aaff611
8 changed files with 143 additions and 1 deletions
@@ -17478,6 +17478,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/invokedynamic/sam/samExtFunWithCapturingLambda.kt");
}
@TestMetadata("serializableSam1.kt")
public void testSerializableSam1() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/serializableSam1.kt");
}
@TestMetadata("serializableSam2.kt")
public void testSerializableSam2() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/serializableSam2.kt");
}
@TestMetadata("simpleFunInterfaceConstructor.kt")
public void testSimpleFunInterfaceConstructor() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/simpleFunInterfaceConstructor.kt");