434470a4f5
The problem arises when retrieveDirectOverriddenOf returns a substitution override member. For such members, it is impossible to get the first base member. For a correct result, it is required to find originalForSubstitutionOverride for all substitutionOverrides. #KT-64276 Fixed
23 lines
427 B
Kotlin
Vendored
23 lines
427 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// FILE: kotlin.kt
|
|
@file:OptIn(ExperimentalObjCName::class)
|
|
|
|
package kotlin.native
|
|
import kotlin.experimental.ExperimentalObjCName
|
|
|
|
fun interface BaseInterface {
|
|
@ObjCName("close")
|
|
fun close()
|
|
}
|
|
|
|
interface DerivedInterface<S> : BaseInterface {
|
|
override fun close()
|
|
}
|
|
|
|
open class BaseClass {
|
|
@ObjCName("close")
|
|
fun close(){
|
|
}
|
|
}
|
|
|
|
class DerivedClass : BaseClass(), DerivedInterface<Any> {} |