Update compiler tests to use KProperty instead of PropertyMetadata
This commit is contained in:
+3
-1
@@ -1,5 +1,7 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class D {
|
||||
fun getValue(a: Any, p: PropertyMetadata) { }
|
||||
fun getValue(a: Any, p: KProperty<*>) { }
|
||||
}
|
||||
|
||||
object P {
|
||||
|
||||
+4
-2
@@ -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>> {
|
||||
|
||||
Reference in New Issue
Block a user