blob: 7998d6581c85a560a1b5bdcdfcd66c557bed216a [file]
// LANGUAGE: +ContextParameters
// IGNORE_ERRORS
class A
interface First {
context(a: A)
fun foo()
context(a: A)
val b: String
}
interface Second {
fun A.foo()
val A.b: String
}
interface Third {
fun foo(a: A)
}
<!CONFLICTING_INHERITED_JVM_DECLARATIONS!>interface IntersectionContextWithExtension : First, Second<!>
<!CONFLICTING_INHERITED_JVM_DECLARATIONS!>interface IntersectionContextWithValue : First, Third<!>