delegatedMemberScope¶
context(session: KaSession)
val KaDeclarationContainerSymbol.delegatedMemberScope: KaScope
A KaScope containing synthetic callables (functions and properties) created by interface delegation.
Example¶
interface I {
val foo: Int get() = 2
fun bar(): String
}
class A(
private val p: I
) : I by p {
val regularProperty: Int = 5
}
The delegated member scope for A has the following entries:
regularProperty is not contained in the delegated member scope because it is not a delegated property.