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
5 lines
225 B
Plaintext
Vendored
5 lines
225 B
Plaintext
Vendored
compiler/testData/cli/jvm/enumEntriesForJavaNotEnabled.kt:4:49: error: unresolved reference: entries
|
|
val entries = java.util.concurrent.TimeUnit.entries
|
|
^
|
|
COMPILATION_ERROR
|