Replace get() and set() to getValue() and setValue() (property delegates)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Delegate<T>(val f: (T) -> Int) {
|
||||
fun get(t: T, p: PropertyMetadata): Int = f(t)
|
||||
fun getValue(t: T, p: PropertyMetadata): Int = f(t)
|
||||
}
|
||||
|
||||
val p = Delegate<A> { t -> t.foo() }
|
||||
|
||||
Reference in New Issue
Block a user