mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
24 lines
356 B
Kotlin
Vendored
24 lines
356 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// FILE: Foo.java
|
|
|
|
public class Foo {
|
|
|
|
static String test() {
|
|
return KEnum.O.name() + KEnum.O.getValue();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// FILE: KEnum.kt
|
|
@Retention(AnnotationRetention.RUNTIME)
|
|
annotation class A
|
|
|
|
enum class KEnum(@A val value: Any) {
|
|
O("K")
|
|
}
|
|
|
|
fun box(): String {
|
|
return Foo.test();
|
|
} |