Add deprecated extension MutableList.remove.

#KT-11648 Fixed
This commit is contained in:
Ilya Gorbunov
2016-03-28 18:22:05 +03:00
parent 90487e9aa1
commit cbf8dca28d
@@ -39,6 +39,14 @@ public inline fun <@kotlin.internal.OnlyInputTypes T> MutableCollection<out T>.r
public inline fun <@kotlin.internal.OnlyInputTypes T> MutableCollection<out T>.retainAll(elements: Collection<T>): Boolean
= @Suppress("UNCHECKED_CAST") (this as MutableCollection<T>).retainAll(elements)
/**
* Removes the element at the specified [index] from this list.
* In Kotlin one should use the [MutableList.removeAt] function instead.
*/
@Deprecated("Use removeAt(index) instead.", ReplaceWith("removeAt(index)"), level = DeprecationLevel.ERROR)
@kotlin.internal.InlineOnly
public inline fun <T> MutableList<T>.remove(index: Int): T = removeAt(index)
/**
* Adds the specified [element] to this mutable collection.
*/