mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
10 lines
248 B
Kotlin
Vendored
10 lines
248 B
Kotlin
Vendored
import kotlin.reflect.KClass
|
|
|
|
@Retention(AnnotationRetention.RUNTIME)
|
|
annotation class Ann(val arg: KClass<*>)
|
|
|
|
fun box(): String {
|
|
val argName = javaClass<Test>().getAnnotation(javaClass<Ann>()).arg.simpleName ?: "fail 1"
|
|
return argName
|
|
}
|