Files
kotlin-fork/compiler/testData/diagnostics/tests/override/manyImplFromOneKotlinInterfaceWithDelegation.kt
T
2023-03-21 16:16:20 +00:00

29 lines
446 B
Kotlin
Vendored

// FIR_IDENTICAL
// FILE: A.kt
interface A {
fun foo() {}
}
// FILE: BJ.java
public interface BJ extends A {}
// FILE: B.kt
interface B : A
// FILE: C.kt
interface C : A
// FILE: test.kt
class Adapter : B, C
<!MANY_IMPL_MEMBER_NOT_IMPLEMENTED!>class D<!>(val adapter: Adapter) : B by adapter, C by adapter
class AdapterJ : BJ, C
<!MANY_IMPL_MEMBER_NOT_IMPLEMENTED!>class DJ<!>(val adapter: AdapterJ) : BJ by adapter, C by adapter