| // RUN_PIPELINE_TILL: BACKEND |
| // FILE: kotlin.kt |
| @file:OptIn(ExperimentalObjCName::class) |
| |
| package kotlin.native |
| |
| import kotlin.experimental.ExperimentalObjCName |
| |
| fun interface BaseInterface { |
| @ObjCName("close") |
| fun close() |
| } |
| |
| interface DerivedInterface : BaseInterface { |
| override fun close() |
| } |
| |
| fun interface IntersectionInterface { |
| @ObjCName("close") |
| fun close() |
| } |
| |
| open class IntersectionAbstract { |
| @ObjCName("close") |
| fun close() { |
| } |
| } |
| |
| open class IntersectionBaseClass : IntersectionAbstract(), IntersectionInterface |
| |
| class DerivedClass : IntersectionBaseClass(), DerivedInterface {} |