Files
kotlin-fork/compiler/testData/codegen/box/annotations/instances/varargInAnnotationParameterInstantiation.kt
T
Ilmir Usmanov 95662234d0 JVM: Support instantiation of annotations with vararg parameters
when they are instantiated without argument.
 #KT-59033 Fixed
2023-06-06 17:27:52 +00:00

18 lines
380 B
Kotlin
Vendored

// 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"
}