Introduce size() extensions for migrational purposes

This commit is contained in:
Denis Zharkov
2015-10-06 14:30:46 +03:00
parent 547aa2cda6
commit 7b432e4830
@@ -3,6 +3,11 @@
package kotlin
@Deprecated("Use property `size` instead", ReplaceWith("this.size"))
public inline fun Collection<*>.size() = size
@Deprecated("Use property `size` instead", ReplaceWith("this.size"))
public inline fun Map<*, *>.size() = size
/**
* Adds the specified [element] to this mutable collection.
*/