Files
kotlin-fork/compiler/testData/codegen/box/annotations/javaConstAnnotationArguments.kt
T
Nikolay Lunyak caa7bee917 [FIR] KT-57835: Prevent the compiler crash
^KT-57835 Fixed
2023-04-12 10:20:44 +00:00

19 lines
349 B
Kotlin
Vendored

// FIR_IDENTICAL
// ISSUE: KT-57879
// TARGET_BACKEND: JVM_IR
// FILE: CoreBundle.java
public class CoreBundle {
public static final String BUNDLE = "OK";
}
// FILE: main.kt
@Target(AnnotationTarget.TYPE)
annotation class AnnKlass(val argument: String)
fun message(key: @AnnKlass(CoreBundle.BUNDLE) String) = key
fun box() = message("OK")