Update compiler tests to use KProperty instead of PropertyMetadata

This commit is contained in:
Alexander Udalov
2015-10-13 14:02:29 +03:00
parent a6846b3967
commit 51bf68ce27
68 changed files with 265 additions and 139 deletions
@@ -1,6 +1,8 @@
import kotlin.reflect.KProperty
class Holder(var value: Int) {
fun getValue(that: Any?, desc: PropertyMetadata) = value
fun setValue(that: Any?, desc: PropertyMetadata, newValue: Int) { value = newValue }
fun getValue(that: Any?, desc: KProperty<*>) = value
fun setValue(that: Any?, desc: KProperty<*>, newValue: Int) { value = newValue }
}
interface R<T: Comparable<T>> {