https://kotlinlang.org logo
#getting-started
Title
# getting-started
j

jcechace

03/21/2022, 4:12 PM
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

ephemient

03/22/2022, 3:34 AM
workaround:
Copy code
annotation class Anno(
    val arrOfK: Array<KClass<*>>
)
fun main() {
    val a = Anno::class.primaryConstructor!!.call(arrayOf(Int::class))
}
a

Alexey Belkov [JB]

03/22/2022, 8:54 AM
Please note that https://youtrack.jetbrains.com/issue/KT-47703 will be fixed in Kotlin 1.6.20, released soon.
j

jcechace

03/23/2022, 5:09 PM
Thanks for the info, I should be able to switch to 1.6.20 right away
4 Views