Box inline class return value in lambdas (including suspend lambdas)
This commit is contained in:
+83
@@ -7811,6 +7811,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("boxReturnValueOfSuspendFunctionReference.kt")
|
||||
public void testBoxReturnValueOfSuspendFunctionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/boxReturnValueOfSuspendFunctionReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boxReturnValueOfSuspendLambda.kt")
|
||||
public void testBoxReturnValueOfSuspendLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/boxReturnValueOfSuspendLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boxUnboxInsideCoroutine.kt")
|
||||
public void testBoxUnboxInsideCoroutine_1_2() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/boxUnboxInsideCoroutine.kt", "kotlin.coroutines.experimental");
|
||||
@@ -14039,6 +14049,79 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class BoxReturnValueInLambda extends AbstractBlackBoxCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBoxReturnValueInLambda() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("boxAny.kt")
|
||||
public void testBoxAny() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAny.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boxFunLiteralAny.kt")
|
||||
public void testBoxFunLiteralAny() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAny.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boxInt.kt")
|
||||
public void testBoxInt() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boxNullableAny.kt")
|
||||
public void testBoxNullableAny() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAny.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boxNullableAnyNull.kt")
|
||||
public void testBoxNullableAnyNull() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNull.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boxNullableInt.kt")
|
||||
public void testBoxNullableInt() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boxNullableIntNull.kt")
|
||||
public void testBoxNullableIntNull() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNull.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boxNullableString.kt")
|
||||
public void testBoxNullableString() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableString.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boxNullableStringNull.kt")
|
||||
public void testBoxNullableStringNull() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNull.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boxString.kt")
|
||||
public void testBoxString() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxString.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt27586_1.kt")
|
||||
public void testKt27586_1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/kt27586_1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt27586_2.kt")
|
||||
public void testKt27586_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/kt27586_2.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user