Skip to content

Commit b4de092

Browse files
Abduqodiri Qurbonzodaqurbonzoda
authored andcommitted
Weaken receiver type of toPersistentHashSet to Iterable #77
1 parent 7d0a6d5 commit b4de092

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/commonMain/src/extensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ fun <T> Iterable<T>.toPersistentSet(): PersistentSet<T> =
623623
*
624624
* Order of the elements in the returned set is unspecified.
625625
*/
626-
fun <T> Set<T>.toPersistentHashSet(): PersistentSet<T>
626+
fun <T> Iterable<T>.toPersistentHashSet(): PersistentSet<T>
627627
= this as? PersistentHashSet
628628
?: (this as? PersistentHashSetBuilder<T>)?.build()
629629
?: PersistentHashSet.emptyOf<T>() + this

0 commit comments

Comments
 (0)