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
@@ -20931,6 +20931,18 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/invokedynamic/sam/samExtFunWithCapturingLambda.kt");
}
@Test
@TestMetadata("serializableSam1.kt")
public void testSerializableSam1() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/serializableSam1.kt");
}
@Test
@TestMetadata("serializableSam2.kt")
public void testSerializableSam2() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/serializableSam2.kt");
}
@Test
@TestMetadata("simpleFunInterfaceConstructor.kt")
public void testSimpleFunInterfaceConstructor() throws Exception {