[Test] Add a test covering for resolution to subsumed members for raw types

^KT-57620
This commit is contained in:
Anastasia.Nekrasova
2023-07-10 16:40:27 +03:00
committed by Space Team
parent e12e78d96b
commit fcba0ad75e
7 changed files with 138 additions and 0 deletions
@@ -25675,6 +25675,22 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/rawTypes")
@TestDataPath("$PROJECT_ROOT")
public class RawTypes {
@Test
public void testAllFilesPresentInRawTypes() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/rawTypes"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
}
@Test
@TestMetadata("kt57620.kt")
public void testKt57620() throws Exception {
runTest("compiler/testData/diagnostics/tests/rawTypes/kt57620.kt");
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/reassignment")
@TestDataPath("$PROJECT_ROOT")
@@ -25675,6 +25675,22 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/rawTypes")
@TestDataPath("$PROJECT_ROOT")
public class RawTypes {
@Test
public void testAllFilesPresentInRawTypes() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/rawTypes"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
}
@Test
@TestMetadata("kt57620.kt")
public void testKt57620() throws Exception {
runTest("compiler/testData/diagnostics/tests/rawTypes/kt57620.kt");
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/reassignment")
@TestDataPath("$PROJECT_ROOT")