Replace get() and set() to getValue() and setValue() (property delegates)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
operator fun <K, V> MutableMap<K, V>.set(k: K, v: V) {}
|
||||
operator fun <K, V> MutableMap<K, V>.set(<!UNUSED_PARAMETER!>k<!>: K, <!UNUSED_PARAMETER!>v<!>: V) {}
|
||||
|
||||
fun foo(a: MutableMap<String, String>, x: String?) {
|
||||
a[x!!] = <!DEBUG_INFO_SMARTCAST!>x<!>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Delegate {
|
||||
fun get(thisRef: Any?, prop: PropertyMetadata): String? {
|
||||
fun getValue(thisRef: Any?, prop: PropertyMetadata): String? {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
public final class Delegate {
|
||||
public constructor Delegate()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun get(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String?
|
||||
public final fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String?
|
||||
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