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<!>)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ public fun test(/*0*/ del: kotlin.Any?): kotlin.Unit
|
||||
public final class Del {
|
||||
public constructor Del()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final operator fun getValue(/*0*/ _this: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||
public final operator fun getValue(/*0*/ _this: kotlin.Any?, /*1*/ p: kotlin.reflect.KProperty<*>): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user