JVM: inline default lambda coercions from bridge invoke
The type of the default lambda may be a subtype of the parameter type, so we can't really generate our own coercions at all as we don't know the precise Kotlin type of the `invoke` method.
This commit is contained in:
+6
@@ -1948,6 +1948,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("differentInvokeSignature3.kt")
|
||||
public void testDifferentInvokeSignature3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionImportedFromObject.kt")
|
||||
public void testFunctionImportedFromObject() throws Exception {
|
||||
|
||||
+6
@@ -1948,6 +1948,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("differentInvokeSignature3.kt")
|
||||
public void testDifferentInvokeSignature3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionImportedFromObject.kt")
|
||||
public void testFunctionImportedFromObject() throws Exception {
|
||||
|
||||
+6
@@ -1948,6 +1948,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("differentInvokeSignature3.kt")
|
||||
public void testDifferentInvokeSignature3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionImportedFromObject.kt")
|
||||
public void testFunctionImportedFromObject() throws Exception {
|
||||
|
||||
+6
@@ -1948,6 +1948,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("differentInvokeSignature3.kt")
|
||||
public void testDifferentInvokeSignature3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionImportedFromObject.kt")
|
||||
public void testFunctionImportedFromObject() throws Exception {
|
||||
|
||||
+6
@@ -1948,6 +1948,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("differentInvokeSignature3.kt")
|
||||
public void testDifferentInvokeSignature3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionImportedFromObject.kt")
|
||||
public void testFunctionImportedFromObject() throws Exception {
|
||||
|
||||
+6
@@ -1948,6 +1948,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("differentInvokeSignature3.kt")
|
||||
public void testDifferentInvokeSignature3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionImportedFromObject.kt")
|
||||
public void testFunctionImportedFromObject() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user