JS: Remove declarations of unsupported SortedSet and TreeSet, make toSortedSet() jvm-only.
Fix completion test. Relates to #KT-7480
This commit is contained in:
@@ -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>())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user