[JVM] Lower .entries calls on Kotlin enums
Leveraging the same mechanism with $EntriesMapping as Java enums. Old (compiled with LV/AV < 1.8) enums are detected by looking for static special <get-entries> method that cannot be introduced on Kotlin enums otherwise #KT-53236
This commit is contained in:
committed by
Space
parent
a12a31ce68
commit
e3bff290bd
@@ -342,6 +342,16 @@ public class CliTestGenerated extends AbstractCliTest {
|
||||
runTest("compiler/testData/cli/jvm/emptySources.args");
|
||||
}
|
||||
|
||||
@TestMetadata("enumEntriesForJavaNotEnabled.args")
|
||||
public void testEnumEntriesForJavaNotEnabled() throws Exception {
|
||||
runTest("compiler/testData/cli/jvm/enumEntriesForJavaNotEnabled.args");
|
||||
}
|
||||
|
||||
@TestMetadata("enumEntriesNotEnabled.args")
|
||||
public void testEnumEntriesNotEnabled() throws Exception {
|
||||
runTest("compiler/testData/cli/jvm/enumEntriesNotEnabled.args");
|
||||
}
|
||||
|
||||
@TestMetadata("experimentalDeprecated.args")
|
||||
public void testExperimentalDeprecated() throws Exception {
|
||||
runTest("compiler/testData/cli/jvm/experimentalDeprecated.args");
|
||||
|
||||
Reference in New Issue
Block a user