JS: Remove declarations of unsupported SortedSet and TreeSet, make toSortedSet() jvm-only.

Fix completion test.

Relates to #KT-7480
This commit is contained in:
Ilya Gorbunov
2016-02-27 00:24:26 +03:00
parent eb7cf92fbd
commit e5dbb65ff7
7 changed files with 13 additions and 10 deletions
@@ -1032,6 +1032,7 @@ public fun <T> Iterable<T>.toSet(): Set<T> {
/**
* Returns a [SortedSet] of all elements.
*/
@kotlin.jvm.JvmVersion
public fun <T: Comparable<T>> Iterable<T>.toSortedSet(): SortedSet<T> {
return toCollection(TreeSet<T>())
}