e3bff290bd
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
7 lines
132 B
Kotlin
Vendored
7 lines
132 B
Kotlin
Vendored
|
|
@OptIn(ExperimentalStdlibApi::class)
|
|
fun box(): String {
|
|
val entries = java.util.concurrent.TimeUnit.entries
|
|
return "OK"
|
|
}
|