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:
+5
@@ -1540,6 +1540,11 @@ public class IrJsCodegenInlineES6TestGenerated extends AbstractIrJsCodegenInline
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("differentInvokeSignature3.kt")
|
||||
public void testDifferentInvokeSignature3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionImportedFromObject.kt")
|
||||
public void testFunctionImportedFromObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt");
|
||||
|
||||
Generated
+5
@@ -1540,6 +1540,11 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("differentInvokeSignature3.kt")
|
||||
public void testDifferentInvokeSignature3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionImportedFromObject.kt")
|
||||
public void testFunctionImportedFromObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt");
|
||||
|
||||
Generated
+5
@@ -1540,6 +1540,11 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("differentInvokeSignature3.kt")
|
||||
public void testDifferentInvokeSignature3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionImportedFromObject.kt")
|
||||
public void testFunctionImportedFromObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt");
|
||||
|
||||
Reference in New Issue
Block a user