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:
committed by
Space Team
parent
3cdbb4876f
commit
dc9193893e
+6
@@ -10367,6 +10367,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
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 {
|
||||
|
||||
+6
@@ -10361,6 +10361,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user