JVM_IR KT-43877 fix generic signatures for SAM-converted lambdas

This commit is contained in:
Dmitry Petrov
2020-12-11 15:41:02 +03:00
parent dc11c2de77
commit b7330a9e14
56 changed files with 1014 additions and 59 deletions
@@ -10408,6 +10408,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/funInterface/samConstructorExplicitInvocation.kt");
}
@TestMetadata("samConversionToGenericInterfaceInGenericFun.kt")
public void testSamConversionToGenericInterfaceInGenericFun() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/samConversionToGenericInterfaceInGenericFun.kt");
}
@TestMetadata("subtypeOfFunctionalTypeToFunInterfaceConversion.kt")
public void testSubtypeOfFunctionalTypeToFunInterfaceConversion() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/subtypeOfFunctionalTypeToFunInterfaceConversion.kt");
@@ -13752,6 +13757,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/ir/anonymousObjectInForLoopIteratorAndBody.kt");
}
@TestMetadata("anonymousObjectInGenericFun.kt")
public void testAnonymousObjectInGenericFun() throws Exception {
runTest("compiler/testData/codegen/box/ir/anonymousObjectInGenericFun.kt");
}
@TestMetadata("anonymousObjectInsideElvis.kt")
public void testAnonymousObjectInsideElvis() throws Exception {
runTest("compiler/testData/codegen/box/ir/anonymousObjectInsideElvis.kt");
@@ -10408,6 +10408,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/funInterface/samConstructorExplicitInvocation.kt");
}
@TestMetadata("samConversionToGenericInterfaceInGenericFun.kt")
public void testSamConversionToGenericInterfaceInGenericFun() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/samConversionToGenericInterfaceInGenericFun.kt");
}
@TestMetadata("subtypeOfFunctionalTypeToFunInterfaceConversion.kt")
public void testSubtypeOfFunctionalTypeToFunInterfaceConversion() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/subtypeOfFunctionalTypeToFunInterfaceConversion.kt");
@@ -13752,6 +13757,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/ir/anonymousObjectInForLoopIteratorAndBody.kt");
}
@TestMetadata("anonymousObjectInGenericFun.kt")
public void testAnonymousObjectInGenericFun() throws Exception {
runTest("compiler/testData/codegen/box/ir/anonymousObjectInGenericFun.kt");
}
@TestMetadata("anonymousObjectInsideElvis.kt")
public void testAnonymousObjectInsideElvis() throws Exception {
runTest("compiler/testData/codegen/box/ir/anonymousObjectInsideElvis.kt");
@@ -10408,6 +10408,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/funInterface/samConstructorExplicitInvocation.kt");
}
@TestMetadata("samConversionToGenericInterfaceInGenericFun.kt")
public void testSamConversionToGenericInterfaceInGenericFun() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/samConversionToGenericInterfaceInGenericFun.kt");
}
@TestMetadata("subtypeOfFunctionalTypeToFunInterfaceConversion.kt")
public void testSubtypeOfFunctionalTypeToFunInterfaceConversion() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/subtypeOfFunctionalTypeToFunInterfaceConversion.kt");
@@ -13817,6 +13822,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/ir/anonymousObjectInForLoopIteratorAndBody.kt");
}
@TestMetadata("anonymousObjectInGenericFun.kt")
public void testAnonymousObjectInGenericFun() throws Exception {
runTest("compiler/testData/codegen/box/ir/anonymousObjectInGenericFun.kt");
}
@TestMetadata("anonymousObjectInsideElvis.kt")
public void testAnonymousObjectInsideElvis() throws Exception {
runTest("compiler/testData/codegen/box/ir/anonymousObjectInsideElvis.kt");
@@ -5259,6 +5259,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/funInterface/samConstructorExplicitInvocation.kt");
}
@TestMetadata("samConversionToGenericInterfaceInGenericFun.kt")
public void testSamConversionToGenericInterfaceInGenericFun() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/samConversionToGenericInterfaceInGenericFun.kt");
}
@TestMetadata("compiler/testData/codegen/box/funInterface/equality")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -8043,6 +8048,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}
@TestMetadata("anonymousObjectInGenericFun.kt")
public void testAnonymousObjectInGenericFun() throws Exception {
runTest("compiler/testData/codegen/box/ir/anonymousObjectInGenericFun.kt");
}
@TestMetadata("anonymousObjectInsideElvis.kt")
public void testAnonymousObjectInsideElvis() throws Exception {
runTest("compiler/testData/codegen/box/ir/anonymousObjectInsideElvis.kt");