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,3 +1,5 @@
import kotlin.reflect.KProperty
class C {
// All these properties should have corresponding accessors
private val valWithGet: String
@@ -25,7 +27,7 @@ class C {
object Delegate {
fun getValue(x: C, p: PropertyMetadata) = throw AssertionError()
fun getValue(x: C, p: KProperty<*>) = throw AssertionError()
fun setValue(x: C, p: PropertyMetadata, value: Int) = throw AssertionError()
fun setValue(x: C, p: KProperty<*>, value: Int) = throw AssertionError()
}