Introduce KAnnotatedElement and val annotations: List<Annotation>
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
annotation(retention = AnnotationRetention.RUNTIME) class Simple(val value: String)
|
||||
|
||||
@Simple("OK")
|
||||
fun box(): String {
|
||||
return (::box.annotations.single() as Simple).value
|
||||
}
|
||||
Reference in New Issue
Block a user