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