Files
kotlin-fork/compiler/testData/codegen/box/enum/annotatedParameter2.kt
T
Nikolay Lunyak bcfafc601e Add EnumEntries to minimal-stdlib-for-tests
This change allows to revert adding `WITH_STDLIB` directive
to tests which happened at `a9343aeb`.

Co-authored-by: Alexander Udalov <Alexander.Udalov@jetbrains.com>
2023-03-02 10:23:38 +00:00

25 lines
354 B
Kotlin
Vendored

// 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()
}