Add a warning for a user-defined entries property call
^KT-53153
This commit is contained in:
committed by
Space Team
parent
695a538529
commit
989fc886e1
+30
@@ -10319,11 +10319,41 @@ 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("entriesPropertyAsExtensionClash.kt")
|
||||
public void testEntriesPropertyAsExtensionClash() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyAsExtensionClash.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("entriesPropertyImportedClash.kt")
|
||||
public void testEntriesPropertyImportedClash() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyImportedClash.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("entriesPropertyInCompanionClash.kt")
|
||||
public void testEntriesPropertyInCompanionClash() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyInCompanionClash.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("entriesPropertyWithJvmStaticClash.kt")
|
||||
public void testEntriesPropertyWithJvmStaticClash() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entries/entriesPropertyWithJvmStaticClash.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntriesAmbiguity.kt")
|
||||
public void testEnumEntriesAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entries/enumEntriesAmbiguity.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericEntriesPropertyClash.kt")
|
||||
public void testGenericEntriesPropertyClash() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entries/genericEntriesPropertyClash.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user