Fix .equals for instantiated annotations with unsigned array types.
#KT-53876 Fixed
This commit is contained in:
committed by
Space Team
parent
0fea8073ef
commit
ccdb6fc599
+15
@@ -0,0 +1,15 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND: WASM
|
||||
// DONT_TARGET_EXACT_BACKEND: JS
|
||||
|
||||
// WITH_STDLIB
|
||||
// !LANGUAGE: +InstantiationOfAnnotationClasses
|
||||
|
||||
annotation class AnnotationWithSignedArray(val array: IntArray)
|
||||
annotation class AnnotationWithUnsignedArray(val array: UIntArray)
|
||||
|
||||
fun box(): String {
|
||||
if (!(AnnotationWithSignedArray(intArrayOf()) == AnnotationWithSignedArray(intArrayOf()))) return "Fail signed"
|
||||
if (!(AnnotationWithUnsignedArray(uintArrayOf()) == AnnotationWithUnsignedArray(uintArrayOf()))) return "Fail unsigned"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user