// FILE: first.before.kt // "Import" "true" // ERROR: Type 'DelegateImpl' has no method 'setValue(BigTest, KProperty<*>, Int)' and thus it cannot serve as a delegate for var (read-write property) package testing import some.DelegateImpl import some.getValue class BigTest { var a by DelegateImpl() } // FILE: second.kt package some import kotlin.reflect.KProperty class DelegateImpl { val value: T = null!! } operator fun DelegateImpl.getValue(thisRef: Any?, property: KProperty<*>): T = value operator fun DelegateImpl.setValue(thisRef: Any, property: KProperty<*>, t: T) {} // FILE: first.after.kt // "Import" "true" // ERROR: Type 'DelegateImpl' has no method 'setValue(BigTest, KProperty<*>, Int)' and thus it cannot serve as a delegate for var (read-write property) package testing import some.DelegateImpl import some.getValue import some.setValue class BigTest { var a by DelegateImpl() }