JVM: Support instantiation of annotations with vararg parameters

when they are instantiated without argument.
 #KT-59033 Fixed
This commit is contained in:
Ilmir Usmanov
2023-06-02 15:38:38 +02:00
committed by teamcity
parent 67090ff10a
commit 95662234d0
17 changed files with 139 additions and 8 deletions
@@ -0,0 +1,18 @@
// WITH_STDLIB
// IGNORE_BACKEND: JVM
// UIntArray parameters do not work on WASM
// See also: KT-59032.
// IGNORE_BACKEND: WASM
annotation class KotlinAnn(vararg val foo: String)
annotation class KotlinIntAnn(vararg val foo: Int)
annotation class KotlinUIntAnn(vararg val foo: UInt)
fun box(): String {
KotlinAnn()
KotlinIntAnn()
KotlinUIntAnn()
return "OK"
}