Add a warning for name shadowing case with Enum.entries
^KT-53153
This commit is contained in:
committed by
Space Team
parent
c70a1b1884
commit
cf4b415a20
+6
@@ -10355,6 +10355,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entries/genericEntriesPropertyClash.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nameShadowingOfExternallyDefinedEntries.kt")
|
||||
public void testNameShadowingOfExternallyDefinedEntries() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entries/nameShadowingOfExternallyDefinedEntries.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("redeclarationOfEnumEntriesNameWithIntrinsic.kt")
|
||||
public void testRedeclarationOfEnumEntriesNameWithIntrinsic() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user