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
@Retention(AnnotationRetention.RUNTIME)
annotation class First
@@ -7,11 +9,11 @@ class MyClass() {
}
class Delegate {
fun getValue(t: Any?, p: PropertyMetadata): String {
fun getValue(t: Any?, p: KProperty<*>): String {
return "OK"
}
fun setValue(t: Any?, p: PropertyMetadata, i: String) {}
fun setValue(t: Any?, p: KProperty<*>, i: String) {}
}
fun box(): String {