JvmDefault. Allow non default inheritance with special flag

#KT-47000
This commit is contained in:
Mikhael Bogdanov
2021-10-30 15:00:15 +02:00
parent c9e7c5d156
commit afc149d460
24 changed files with 461 additions and 6 deletions
@@ -25251,6 +25251,40 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance")
@TestDataPath("$PROJECT_ROOT")
public class NonDefaultInheritance {
@Test
public void testAllFilesPresentInNonDefaultInheritance() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/simple.kt");
}
@Test
@TestMetadata("simple2.kt")
public void testSimple2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/simple2.kt");
}
@Test
@TestMetadata("specialization.kt")
public void testSpecialization() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/specialization.kt");
}
@Test
@TestMetadata("superCall.kt")
public void testSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/superCall.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults/reflection")
@TestDataPath("$PROJECT_ROOT")