Fix return type of linkedHashSetOf to be more specific.

This commit is contained in:
Ilya Ryzhenkov
2015-01-12 22:41:28 +03:00
parent 9b04f57a25
commit c3eaf1b869
@@ -59,7 +59,7 @@ public fun arrayListOf<T>(vararg values: T): ArrayList<T> = values.toCollection(
public fun hashSetOf<T>(vararg values: T): HashSet<T> = values.toCollection(HashSet(values.size()))
/** Returns a new LinkedHashSet with a variable number of initial elements */
public fun linkedSetOf<T>(vararg values: T): HashSet<T> = values.toCollection(LinkedHashSet(values.size()))
public fun linkedSetOf<T>(vararg values: T): LinkedHashSet<T> = values.toCollection(LinkedHashSet(values.size()))
public val Collection<*>.indices: IntRange
get() = 0..size() - 1