Files
kotlin-fork/compiler/testData/diagnostics/nativeTests/objCNameWIthDifferentSwiftName.kt
T
Anastasia.Nekrasova d69240a2d5 [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
2024-02-19 09:29:43 +00:00

22 lines
354 B
Kotlin
Vendored

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