Deprecate PropertyMetadata, use KProperty<*> for delegated properties instead
This commit is contained in:
+3
-2
@@ -1,5 +1,7 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class Del {
|
||||
operator fun getValue(_this: Any?, p: PropertyMetadata): Int = 0
|
||||
operator fun getValue(_this: Any?, p: KProperty<*>): Int = 0
|
||||
}
|
||||
|
||||
fun df(del: Del): Del = del
|
||||
@@ -13,4 +15,3 @@ fun test(del: Any?) {
|
||||
val delegatedVal1: Int by df(<!DEBUG_INFO_SMARTCAST!>del<!>)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user