// RUN_PIPELINE_TILL: BACKEND
// FIR_IDENTICAL
// ISSUE: KT-57833

// MODULE: m1-common
// FILE: common.kt

interface ByteChannel : ByteReadChannel, ByteWriteChannel

expect interface ByteReadChannel {
    val isClosedForWrite: Boolean

    fun f()
}

expect interface ByteWriteChannel {
    val isClosedForWrite: Boolean

    fun f()
}

// MODULE: m2-jvm()()(m1-common)
// FILE: platform.kt

actual interface ByteReadChannel {
    actual val isClosedForWrite: Boolean

    actual fun f()
}

actual interface ByteWriteChannel {
    actual val isClosedForWrite: Boolean

    actual fun f()
}

/* GENERATED_FIR_TAGS: actual, expect, functionDeclaration, interfaceDeclaration, propertyDeclaration */
