Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/contextReceivers/ambiguityInGroupWithInheritance.fir.kt
T
2021-12-02 20:23:57 +03:00

14 lines
163 B
Kotlin
Vendored

interface Common
interface C1 : Common
interface C2 : Common
context(Common)
fun foo() {}
fun Common.bar() {}
context(C1, C2)
fun test() {
foo()
bar()
}