Hi, would anyone happen to know about workaround ...
# getting-started
j
Hi, would anyone happen to know about workaround for https://youtrack.jetbrains.com/issue/KT-47703 ? Unfortunately there is a about dozen duplicates of this issue, however I haven’t managed to dig out the original https://youtrack.jetbrains.com/issue/KT-45395 does not mention it
e
workaround:
Copy code
annotation class Anno(
    val arrOfK: Array<KClass<*>>
)
fun main() {
    val a = Anno::class.primaryConstructor!!.call(arrayOf(Int::class))
}
a
Please note that https://youtrack.jetbrains.com/issue/KT-47703 will be fixed in Kotlin 1.6.20, released soon.
j
Thanks for the info, I should be able to switch to 1.6.20 right away