mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
26 lines
384 B
Kotlin
Vendored
26 lines
384 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 foo() {}
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Foo.test()
|
|
} |