12 lines
163 B
Kotlin
Vendored
12 lines
163 B
Kotlin
Vendored
// !LANGUAGE: +ContextReceivers
|
|
|
|
interface A
|
|
interface B
|
|
|
|
context(A) class C {
|
|
context(B) fun f() {}
|
|
}
|
|
|
|
context(A) fun g() {}
|
|
context(B) val h: Int get() = 42
|