// FIR_IDENTICAL // FILE: kotlin.kt @file:OptIn(kotlin.experimental.ExperimentalObjCName::class) fun interface AutoCloseable { @ObjCName("close") fun close() } interface BaseStream> : AutoCloseable { override fun close() } interface Stream : BaseStream> {} open class TerminatableStream> { @ObjCName("close") open fun close() {} } class StreamImpl : TerminatableStream>, Stream { constructor() : super() {} }