Add a test to check Java behavior with entries members

Note that there is a questionable behavior that will be fixed later.

 Right now it's not fully clear because for the same situation in Kotlin, the compiler reports warnings at declaration-site and it's not possible to do so for Java

 ^KT-53153
This commit is contained in:
Mikhail Zarechenskiy
2023-01-03 15:32:22 +01:00
committed by Space Team
parent 3cdbb4876f
commit dc9193893e
7 changed files with 147 additions and 0 deletions
@@ -10361,6 +10361,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/enum/entries/genericEntriesPropertyClash.kt");
}
@Test
@TestMetadata("javaEnumEntriesAmbiguity.kt")
public void testJavaEnumEntriesAmbiguity() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/entries/javaEnumEntriesAmbiguity.kt");
}
@Test
@TestMetadata("nameShadowingOfExternallyDefinedEntries.kt")
public void testNameShadowingOfExternallyDefinedEntries() throws Exception {