mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
14 lines
363 B
Kotlin
Vendored
14 lines
363 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
|
|
@file:StringHolder("OK")
|
|
@file:JvmName("FileClass")
|
|
|
|
@Target(AnnotationTarget.FILE)
|
|
@Retention(AnnotationRetention.RUNTIME)
|
|
public annotation class StringHolder(val value: String)
|
|
|
|
fun box(): String =
|
|
Class.forName("FileClass").getAnnotation(StringHolder::class.java)?.value ?: "null"
|