Change Signature: Match calls of different overloads generated due to @JvmOverloads annotation

#KT-9020 Fixed
This commit is contained in:
Alexey Sedunov
2015-10-27 21:25:09 +03:00
parent 6b346d9e77
commit 5e223927ea
65 changed files with 880 additions and 26 deletions
@@ -108,3 +108,8 @@ public fun <T> Collection<T>.toReadOnlyList(): List<T> =
public fun <T: Any> T?.singletonOrEmptyList(): List<T> =
if (this != null) listOf(this) else emptyList()
public fun <T> MutableList<T>.removeLast(condition: (T) -> Boolean): T? {
val index = indexOfLast(condition)
return if (index >= 0) removeAt(index) else null
}