JVM_IR: box inline class values returned by suspend inline lambdas
The call site inside the inline function expects them to return a boxed value, like FunctionN.invoke would. #KT-46915 Fixed
This commit is contained in:
+12
@@ -4981,12 +4981,24 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnBoxedFromLambda.kt")
|
||||
public void testReturnBoxedFromLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnBoxedFromLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnUnboxedDirect.kt")
|
||||
public void testReturnUnboxedDirect() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedDirect.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnUnboxedFromLambda.kt")
|
||||
public void testReturnUnboxedFromLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedFromLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnUnboxedResume.kt")
|
||||
public void testReturnUnboxedResume() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user