Added some tests on local classes in inline bodies

This commit is contained in:
Igor Chevdar
2020-03-26 12:58:40 +03:00
parent e2a378bed7
commit d808ef10b2
11 changed files with 272 additions and 0 deletions
@@ -41,6 +41,11 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("anonymousObjectInDefault.kt")
public void testAnonymousObjectInDefault() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectInDefault.kt");
}
@TestMetadata("anonymousObjectOnCallSite.kt")
public void testAnonymousObjectOnCallSite() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSite.kt");
@@ -81,6 +86,16 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInlineObject.kt");
}
@TestMetadata("capturedLocalFun.kt")
public void testCapturedLocalFun() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFun.kt");
}
@TestMetadata("capturedLocalFunRef.kt")
public void testCapturedLocalFunRef() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFunRef.kt");
}
@TestMetadata("changingReturnType.kt")
public void testChangingReturnType() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/changingReturnType.kt");
@@ -271,11 +286,21 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
runTest("compiler/testData/codegen/boxInline/anonymousObject/sam.kt");
}
@TestMetadata("sharedFromCrossinline.kt")
public void testSharedFromCrossinline() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/sharedFromCrossinline.kt");
}
@TestMetadata("superConstructorWithObjectParameter.kt")
public void testSuperConstructorWithObjectParameter() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/superConstructorWithObjectParameter.kt");
}
@TestMetadata("typeInfo.kt")
public void testTypeInfo() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/typeInfo.kt");
}
@TestMetadata("withInlineMethod.kt")
public void testWithInlineMethod() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/withInlineMethod.kt");