Update compiler tests to use KProperty instead of PropertyMetadata
This commit is contained in:
+4
-2
@@ -1,5 +1,7 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class Delegate {
|
||||
fun getValue(t: F.A, p: PropertyMetadata): Int = 1
|
||||
fun getValue(t: F.A, p: KProperty<*>): Int = 1
|
||||
}
|
||||
|
||||
class F {
|
||||
@@ -15,4 +17,4 @@ class F {
|
||||
|
||||
fun box(): String {
|
||||
return if(F().foo() == 1) "OK" else "fail"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user