Remove PropertyMetadata from project and bytecode, migrate code to KProperty
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
// "Rename to 'setValue'" "true"
|
||||
// ERROR: 'get' method convention on type 'CustomDelegate' is deprecated. Rename to 'getValue'
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class CustomDelegate {
|
||||
operator fun get(thisRef: Any?, prop: PropertyMetadata): String = ""
|
||||
operator fun set(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
||||
operator fun get(thisRef: Any?, prop: KProperty<*>): String = ""
|
||||
operator fun set(thisRef: Any?, prop: KProperty<*>, value: String) {}
|
||||
}
|
||||
|
||||
class Example {
|
||||
|
||||
Reference in New Issue
Block a user