Add a warning for conflicting entries member

^KT-53153
This commit is contained in:
Mikhail Zarechenskiy
2023-01-03 15:01:11 +01:00
committed by Space Team
parent cf4b415a20
commit 3cdbb4876f
10 changed files with 90 additions and 0 deletions
@@ -10319,6 +10319,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/enum/entries"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("conflictingPropertyEntriesAndReference.kt")
public void testConflictingPropertyEntriesAndReference() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/entries/conflictingPropertyEntriesAndReference.kt");
}
@Test
@TestMetadata("entriesPropertyAsExtensionClash.kt")
public void testEntriesPropertyAsExtensionClash() throws Exception {