Change String argument of property delegate method to PropertyMetadata

This commit is contained in:
Natalia.Ukhorskaya
2013-04-25 18:41:35 +04:00
parent 6e2584d0de
commit b9e5227b58
63 changed files with 174 additions and 83 deletions
@@ -1,5 +1,5 @@
class Delegate<T>(val f: (T) -> Int) {
fun get(t: T, p: String): Int = f(t)
fun get(t: T, p: PropertyMetadata): Int = f(t)
}
val p = Delegate<A> { t -> t.foo() }