12 lines
138 B
Kotlin
Vendored
12 lines
138 B
Kotlin
Vendored
// !LANGUAGE: +ContextReceivers
|
|
|
|
interface A {
|
|
fun a(): Int
|
|
}
|
|
interface B {
|
|
fun b(): Int
|
|
}
|
|
|
|
context(A, B)
|
|
val c get() = a() + b()
|