JVM: Support instantiation of annotations with vararg parameters
when they are instantiated without argument. #KT-59033 Fixed
This commit is contained in:
Vendored
+18
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user