That’s great news – thanks!!
I’m unclear how to access them.
In the given example:
@DataAttribute("http://foaf/FirstName")
typealias FirstName = String
@DataAttribute("http://foaf/LastName")
typealias LastName = String
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.TYPEALIAS)
annotation class DataAttribute(val value:String)
data class Person(val firstName: FirstName, val lastName: LastName)
How are the annotations associated with FirstName
and LastName
accessed via reflection?