mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
9 lines
292 B
Kotlin
Vendored
9 lines
292 B
Kotlin
Vendored
@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" |