[KMP] Implement ACTUAL_TYPE_ALIAS_TO_NOTHING/TO_NULLABLE_TYPE errors

^KT-60650 Done
This commit is contained in:
marat.akhin
2023-07-25 12:22:28 +02:00
committed by Space Team
parent 7cef7ac639
commit 34b271b13d
23 changed files with 249 additions and 1 deletions
@@ -23581,6 +23581,28 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
runTest("compiler/testData/diagnostics/tests/multiplatform/topLevelProperty/simpleHeaderVar.kt");
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/multiplatform/typealias")
@TestDataPath("$PROJECT_ROOT")
public class Typealias {
@Test
@TestMetadata("actualTypealiasToNothing.kt")
public void testActualTypealiasToNothing() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/typealias/actualTypealiasToNothing.kt");
}
@Test
@TestMetadata("actualTypealiasToNullableType.kt")
public void testActualTypealiasToNullableType() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/typealias/actualTypealiasToNullableType.kt");
}
@Test
public void testAllFilesPresentInTypealias() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/typealias"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
}
}
}
@Nested