Update compiler tests to use KProperty instead of PropertyMetadata
This commit is contained in:
+4
-2
@@ -1,9 +1,11 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class TestDelegate() {
|
||||
fun getValue(thisRef: Any?, desc: PropertyMetadata): Int {
|
||||
fun getValue(thisRef: Any?, desc: KProperty<*>): Int {
|
||||
return 10
|
||||
}
|
||||
|
||||
public open fun setValue(thisRef: Any?, desc: PropertyMetadata, svalue : Int) {
|
||||
public open fun setValue(thisRef: Any?, desc: KProperty<*>, svalue : Int) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -1,5 +1,7 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class TestDelegate() {
|
||||
fun getValue(thisRef: Any?, desc: PropertyMetadata): Int {
|
||||
fun getValue(thisRef: Any?, desc: KProperty<*>): Int {
|
||||
return 10
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user