Fix .equals for instantiated annotations with unsigned array types.

#KT-53876 Fixed
This commit is contained in:
Leonid Startsev
2022-09-28 17:19:34 +02:00
committed by Space Team
parent 0fea8073ef
commit ccdb6fc599
12 changed files with 92 additions and 13 deletions
@@ -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"
}