FIR: do not inherit external modifier from super declaration

This commit is contained in:
Ilya Kirillov
2021-11-04 19:23:56 +01:00
parent d119976b46
commit 348403b1f3
7 changed files with 92 additions and 0 deletions
@@ -10550,6 +10550,22 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/external")
@TestDataPath("$PROJECT_ROOT")
public class External {
@Test
public void testAllFilesPresentInExternal() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/external"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("noExternalModifierInheritance.kt")
public void testNoExternalModifierInheritance() throws Exception {
runTest("compiler/testData/diagnostics/tests/external/noExternalModifierInheritance.kt");
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/funInterface")
@TestDataPath("$PROJECT_ROOT")
@@ -10550,6 +10550,22 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/external")
@TestDataPath("$PROJECT_ROOT")
public class External {
@Test
public void testAllFilesPresentInExternal() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/external"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("noExternalModifierInheritance.kt")
public void testNoExternalModifierInheritance() throws Exception {
runTest("compiler/testData/diagnostics/tests/external/noExternalModifierInheritance.kt");
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/funInterface")
@TestDataPath("$PROJECT_ROOT")