From 4d8977ea32d6cf8e093fc67fc1e9bf71466ee610 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Fri, 18 Sep 2015 22:00:03 +0300 Subject: [PATCH] Provide required imports for deprecation replacement of Delegates.mapVal and mapVar. --- libraries/stdlib/src/kotlin/properties/Delegation.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/stdlib/src/kotlin/properties/Delegation.kt b/libraries/stdlib/src/kotlin/properties/Delegation.kt index 512d7a0fe77..a0e9b4eccf0 100644 --- a/libraries/stdlib/src/kotlin/properties/Delegation.kt +++ b/libraries/stdlib/src/kotlin/properties/Delegation.kt @@ -73,7 +73,7 @@ public object Delegates { * as a key. * @param map the map where the property values are stored. */ - @Deprecated("Delegate property to the map itself without creating a wrapper.", ReplaceWith("map")) + @Deprecated("Delegate property to the map itself without creating a wrapper.", ReplaceWith("map", "kotlin.properties.get", "kotlin.properties.set")) public fun mapVar(map: MutableMap): ReadWriteProperty { return FixedMapVar(map, propertyNameSelector, throwKeyNotFound) } @@ -94,7 +94,7 @@ public object Delegates { * as a key. * @param map the map where the property values are stored. */ - @Deprecated("Delegate property to the map itself without creating a wrapper.", ReplaceWith("map")) + @Deprecated("Delegate property to the map itself without creating a wrapper.", ReplaceWith("map", "kotlin.properties.get")) public fun mapVal(map: Map): ReadOnlyProperty { return FixedMapVal(map, propertyNameSelector, throwKeyNotFound) }