[Test] Add more diagnostic tests for cases with expect class in supertypes

Related issues: KT-58845, KT-58881, KT-64187
This commit is contained in:
Dmitriy Novozhilov
2024-01-09 16:59:09 +02:00
committed by Nikolay Lunyak
parent ed04cca62b
commit 77547c0312
13 changed files with 304 additions and 18 deletions
@@ -26586,6 +26586,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
@TestMetadata("compiler/testData/diagnostics/tests/multiplatform/scopes")
@TestDataPath("$PROJECT_ROOT")
public class Scopes {
@Test
@TestMetadata("actualAbstractClassWithAdditionalMembers.kt")
public void testActualAbstractClassWithAdditionalMembers() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/scopes/actualAbstractClassWithAdditionalMembers.kt");
}
@Test
@TestMetadata("actualFakeOverride.kt")
public void testActualFakeOverride() throws Exception {
@@ -26675,11 +26681,29 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/multiplatform/scopes/manyInterfacesMemberNotImplemented.kt");
}
@Test
@TestMetadata("mixedFunctionalTypesInSupertypes.kt")
public void testMixedFunctionalTypesInSupertypes() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/scopes/mixedFunctionalTypesInSupertypes.kt");
}
@Test
@TestMetadata("multipleDefaultsInhereted.kt")
public void testMultipleDefaultsInhereted() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/scopes/multipleDefaultsInhereted.kt");
}
@Test
@TestMetadata("multipleExpectInterfacesImplementation.kt")
public void testMultipleExpectInterfacesImplementation() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/scopes/multipleExpectInterfacesImplementation.kt");
}
@Test
@TestMetadata("scopeOfFunInterface.kt")
public void testScopeOfFunInterface() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/scopes/scopeOfFunInterface.kt");
}
}
@Nested
@@ -26586,6 +26586,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
@TestMetadata("compiler/testData/diagnostics/tests/multiplatform/scopes")
@TestDataPath("$PROJECT_ROOT")
public class Scopes {
@Test
@TestMetadata("actualAbstractClassWithAdditionalMembers.kt")
public void testActualAbstractClassWithAdditionalMembers() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/scopes/actualAbstractClassWithAdditionalMembers.kt");
}
@Test
@TestMetadata("actualFakeOverride.kt")
public void testActualFakeOverride() throws Exception {
@@ -26675,11 +26681,29 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/multiplatform/scopes/manyInterfacesMemberNotImplemented.kt");
}
@Test
@TestMetadata("mixedFunctionalTypesInSupertypes.kt")
public void testMixedFunctionalTypesInSupertypes() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/scopes/mixedFunctionalTypesInSupertypes.kt");
}
@Test
@TestMetadata("multipleDefaultsInhereted.kt")
public void testMultipleDefaultsInhereted() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/scopes/multipleDefaultsInhereted.kt");
}
@Test
@TestMetadata("multipleExpectInterfacesImplementation.kt")
public void testMultipleExpectInterfacesImplementation() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/scopes/multipleExpectInterfacesImplementation.kt");
}
@Test
@TestMetadata("scopeOfFunInterface.kt")
public void testScopeOfFunInterface() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/scopes/scopeOfFunInterface.kt");
}
}
@Nested