Restore original accessor signature as deprecated

The deprecated function is not operator because it covers cases where it was used in explicit form.

#KT-18789
This commit is contained in:
Ilya Gorbunov
2017-12-01 07:00:50 +03:00
parent 7efaa7cabc
commit 0b9830248d
2 changed files with 18 additions and 0 deletions
@@ -29,6 +29,13 @@ public inline operator fun <V, V1: V> Map<in String, @Exact V>.getValue(thisRef:
public inline operator fun <V, V1: V> MutableMap<in String, out @Exact V>.getValue(thisRef: Any?, property: KProperty<*>): V1
= @Suppress("UNCHECKED_CAST") (getOrImplicitDefault(property.name) as V1)
@Deprecated("Use getValue() with two type parameters instead")
@kotlin.jvm.JvmName("getVarContravariant")
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.internal.InlineOnly
public inline fun <V> MutableMap<in String, in V>.getValue(thisRef: Any?, property: KProperty<*>): V
= @Suppress("UNCHECKED_CAST") (getOrImplicitDefault(property.name) as V)
/**
* Stores the value of the property for the given object in this mutable map.
* @param thisRef the object for which the value is requested (not used).