Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/severalReceivers.kt
T

14 lines
295 B
Kotlin
Vendored

// FIR_IDENTICAL
import kotlin.reflect.KProperty
class A
object Delegate {
operator fun getValue(state: A, desc: KProperty<*>): Int = 0
operator fun setValue(state: A, desc: KProperty<*>, value: Int) {}
}
open class B {
val A.foo: Int by Delegate
var A.bar: Int by Delegate
}