K2: introduce prioritized enum entries resolve by a 2.1 feature

Related to KT-48872
This commit is contained in:
Mikhail Glukhikh
2023-05-25 15:07:03 +02:00
committed by Space Team
parent b92f1e2036
commit 905e1dcd3b
42 changed files with 651 additions and 21 deletions
@@ -11071,6 +11071,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/enum/entries/conflictingPropertyEntriesAndReferenceOn.kt");
}
@Test
@TestMetadata("conflictingPropertyEntriesAndReferencePrioritized.kt")
public void testConflictingPropertyEntriesAndReferencePrioritized() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/entries/conflictingPropertyEntriesAndReferencePrioritized.kt");
}
@Test
@TestMetadata("entriesPropertyAsExtensionClash.kt")
public void testEntriesPropertyAsExtensionClash() throws Exception {
@@ -11083,6 +11089,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyAsExtensionClashOn.kt");
}
@Test
@TestMetadata("entriesPropertyAsExtensionClashPrioritized.kt")
public void testEntriesPropertyAsExtensionClashPrioritized() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyAsExtensionClashPrioritized.kt");
}
@Test
@TestMetadata("entriesPropertyImportedClash.kt")
public void testEntriesPropertyImportedClash() throws Exception {
@@ -11095,6 +11107,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyImportedClashOn.kt");
}
@Test
@TestMetadata("entriesPropertyImportedClashPrioritized.kt")
public void testEntriesPropertyImportedClashPrioritized() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyImportedClashPrioritized.kt");
}
@Test
@TestMetadata("entriesPropertyInCompanionClash.kt")
public void testEntriesPropertyInCompanionClash() throws Exception {
@@ -11119,6 +11137,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyWithJvmStaticClashOn.kt");
}
@Test
@TestMetadata("entriesPropertyWithJvmStaticClashPrioritized.kt")
public void testEntriesPropertyWithJvmStaticClashPrioritized() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyWithJvmStaticClashPrioritized.kt");
}
@Test
@TestMetadata("entriesUnsupported.kt")
public void testEntriesUnsupported() throws Exception {
@@ -11167,6 +11191,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/enum/entries/nameShadowingOfExternallyDefinedEntriesOn.kt");
}
@Test
@TestMetadata("nameShadowingOfExternallyDefinedEntriesPrioritized.kt")
public void testNameShadowingOfExternallyDefinedEntriesPrioritized() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/entries/nameShadowingOfExternallyDefinedEntriesPrioritized.kt");
}
@Test
@TestMetadata("redeclarationOfEnumEntriesNameWithIntrinsic.kt")
public void testRedeclarationOfEnumEntriesNameWithIntrinsic() throws Exception {
@@ -11071,6 +11071,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/enum/entries/conflictingPropertyEntriesAndReferenceOn.kt");
}
@Test
@TestMetadata("conflictingPropertyEntriesAndReferencePrioritized.kt")
public void testConflictingPropertyEntriesAndReferencePrioritized() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/entries/conflictingPropertyEntriesAndReferencePrioritized.kt");
}
@Test
@TestMetadata("entriesPropertyAsExtensionClash.kt")
public void testEntriesPropertyAsExtensionClash() throws Exception {
@@ -11083,6 +11089,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyAsExtensionClashOn.kt");
}
@Test
@TestMetadata("entriesPropertyAsExtensionClashPrioritized.kt")
public void testEntriesPropertyAsExtensionClashPrioritized() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyAsExtensionClashPrioritized.kt");
}
@Test
@TestMetadata("entriesPropertyImportedClash.kt")
public void testEntriesPropertyImportedClash() throws Exception {
@@ -11095,6 +11107,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyImportedClashOn.kt");
}
@Test
@TestMetadata("entriesPropertyImportedClashPrioritized.kt")
public void testEntriesPropertyImportedClashPrioritized() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyImportedClashPrioritized.kt");
}
@Test
@TestMetadata("entriesPropertyInCompanionClash.kt")
public void testEntriesPropertyInCompanionClash() throws Exception {
@@ -11119,6 +11137,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyWithJvmStaticClashOn.kt");
}
@Test
@TestMetadata("entriesPropertyWithJvmStaticClashPrioritized.kt")
public void testEntriesPropertyWithJvmStaticClashPrioritized() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyWithJvmStaticClashPrioritized.kt");
}
@Test
@TestMetadata("entriesUnsupported.kt")
public void testEntriesUnsupported() throws Exception {
@@ -11167,6 +11191,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/enum/entries/nameShadowingOfExternallyDefinedEntriesOn.kt");
}
@Test
@TestMetadata("nameShadowingOfExternallyDefinedEntriesPrioritized.kt")
public void testNameShadowingOfExternallyDefinedEntriesPrioritized() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/entries/nameShadowingOfExternallyDefinedEntriesPrioritized.kt");
}
@Test
@TestMetadata("redeclarationOfEnumEntriesNameWithIntrinsic.kt")
public void testRedeclarationOfEnumEntriesNameWithIntrinsic() throws Exception {