Alex Woods
02/10/2020, 6:14 PMdata class Foo(val a: String = "hello")
// can I access "hello" somehow, like Foo::class.fields.map { it.defaultValue }
2. What’s the maximum supertype I can use on an annotation? I know annotations can only take certain values (primitives in Java, classes, etc.).
@Target...
annotation class Bar<T>(val value: T) // nope!
annotation class Bar(val value: Any) // nope!
Is there some supertype for anything that is valid in an annotation?Alex Woods
02/10/2020, 6:17 PMbezrukov
02/10/2020, 7:30 PM