[FIR] Fixed behavior of FirAnnotation.findArgumentByName for resolved annotations

The 'findArgumentByName' function was returning an invalid result for
annotation arguments with omitted argument name.

#KT-64276
This commit is contained in:
Anastasia.Nekrasova
2024-02-16 14:05:38 +02:00
committed by Space Team
parent bb8c7dd04c
commit d69240a2d5
5 changed files with 44 additions and 3 deletions
@@ -0,0 +1,21 @@
// FIR_IDENTICAL
// FILE: kotlin.kt
@file:OptIn(ExperimentalObjCName::class)
package kotlin.native
import kotlin.experimental.ExperimentalObjCName
fun interface BaseInterface {
@ObjCName(name = "close")
fun close()
}
open class BaseClass {
@ObjCName("close")
fun close() {
}
}
class DerivedClass : BaseClass(), BaseInterface {}