Toshihiro Nakamura
03/09/2024, 2:11 AMannotation class MyAnnotation(val type: KClass<*> = String::class)
When retrieving the type element in SymbolProcessor, it returns a KSErrorType.
val annotation = symbol.annotations.first { it.shortName.asString() == MyAnnotation::class.simpleName }
val type = annotation.arguments.first().value
env.logger.warn("type: $type") // type: <ERROR TYPE>
Is this a known issue?Zac Sweers
03/09/2024, 1:41 PMToshihiro Nakamura
03/09/2024, 1:53 PM