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