// FILE: first.before.kt // "Import" "true" // ERROR: Missing 'getValue(BigTest, KProperty<*>)' method on delegate of type 'DelegateImpl' // ERROR: Missing 'setValue(BigTest, KProperty<*>, [ERROR : Type from delegate])' method on delegate of type 'DelegateImpl' package testing import some.DelegateImpl class BigTest { var a by DelegateImpl() } // FILE: second.kt package some import kotlin.reflect.KProperty class DelegateImpl { val value: T = null!! } public operator fun DelegateImpl.getValue(thisRef: Any?, property: KProperty<*>): T = value public operator fun DelegateImpl.setValue(thisRef: Any, property: KProperty<*>, t: T) {} // FILE: first.after.kt // "Import" "true" // ERROR: Missing 'getValue(BigTest, KProperty<*>)' method on delegate of type 'DelegateImpl' // ERROR: Missing 'setValue(BigTest, KProperty<*>, [ERROR : Type from delegate])' method on delegate of type 'DelegateImpl' package testing import some.DelegateImpl import some.getValue import some.setValue class BigTest { var a by DelegateImpl() }