Skip to content

delegatedMemberScope

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:

override val foo: kotlin.Int
  get()

override fun bar(): kotlin.String

regularProperty is not contained in the delegated member scope because it is not a delegated property.