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