Deprecate PropertyMetadata, use KProperty<*> for delegated properties instead
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// !DIAGNOSTICS:-UNUSED_VARIABLE
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
const val topLevel: Int = 0
|
||||
const val topLevelInferred = 1
|
||||
<!WRONG_MODIFIER_TARGET!>const<!> var topLeveLVar: Int = 2
|
||||
@@ -69,7 +71,7 @@ const val nonConstInitializer = <!CONST_VAL_WITH_NON_CONST_INITIALIZER!>foo()<!>
|
||||
|
||||
// ------------------
|
||||
class Delegate {
|
||||
operator fun getValue(thisRef: Any?, prop: PropertyMetadata): Int = 1
|
||||
operator fun getValue(thisRef: Any?, prop: KProperty<*>): Int = 1
|
||||
|
||||
operator fun setValue(thisRef: Any?, prop: PropertyMetadata, value: Int) = Unit
|
||||
operator fun setValue(thisRef: Any?, prop: KProperty<*>, value: Int) = Unit
|
||||
}
|
||||
|
||||
@@ -58,9 +58,9 @@ public object D : C {
|
||||
public final class Delegate {
|
||||
public constructor Delegate()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final operator fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.Int
|
||||
public final operator fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.reflect.KProperty<*>): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final operator fun setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.Int): kotlin.Unit
|
||||
public final operator fun setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.reflect.KProperty<*>, /*2*/ value: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user