mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
11 lines
238 B
Kotlin
Vendored
11 lines
238 B
Kotlin
Vendored
|
|
class OK
|
|
|
|
@JavaAnn(OK::class) class MyClass
|
|
|
|
fun box(): String {
|
|
val ann = MyClass::class.java.getAnnotation(JavaAnn::class.java)
|
|
if (ann == null) return "fail: cannot find JavaAnn on MyClass"
|
|
return ann.value.simpleName!!
|
|
}
|