JVM_IR indy-SAM conversions: more cases

KT-44278 KT-26060 KT-42621
This commit is contained in:
Dmitry Petrov
2021-01-20 14:51:07 +03:00
parent 3140cca050
commit f30e25aa52
17 changed files with 383 additions and 57 deletions
@@ -16138,6 +16138,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/invokedynamic/sam/boundReference.kt");
}
@TestMetadata("builtinMemberReference.kt")
public void testBuiltinMemberReference() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/builtinMemberReference.kt");
}
@TestMetadata("capturedDispatchReceiver.kt")
public void testCapturedDispatchReceiver() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/capturedDispatchReceiver.kt");
@@ -16158,11 +16163,36 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/invokedynamic/sam/capturingIndySam.kt");
}
@TestMetadata("capturingVar.kt")
public void testCapturingVar() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/capturingVar.kt");
}
@TestMetadata("constructorReference.kt")
public void testConstructorReference() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/constructorReference.kt");
}
@TestMetadata("genericFunInterface.kt")
public void testGenericFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/genericFunInterface.kt");
}
@TestMetadata("genericFunInterfaceWithPrimitive.kt")
public void testGenericFunInterfaceWithPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/genericFunInterfaceWithPrimitive.kt");
}
@TestMetadata("primitiveVsWrapperInSam.kt")
public void testPrimitiveVsWrapperInSam() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/primitiveVsWrapperInSam.kt");
}
@TestMetadata("samConversionOnFunctionReference.kt")
public void testSamConversionOnFunctionReference() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/samConversionOnFunctionReference.kt");
}
@TestMetadata("simpleIndyFunInterface.kt")
public void testSimpleIndyFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/simpleIndyFunInterface.kt");