Variance in functions/properties removed from stdlib

This commit is contained in:
Andrey Breslav
2012-11-22 13:58:27 +04:00
parent 12fd07af08
commit 5b93ae2d08
40 changed files with 103 additions and 103 deletions
+2 -2
View File
@@ -26,12 +26,12 @@ public object Collections {
public fun <K,V> emptyMap(): Map<K,V> = emptyMap as Map<K,V>
library
public fun <in T> sort(list: List<T>): Unit {
public fun <T> sort(list: MutableList<T>): Unit {
throw UnsupportedOperationException()
}
library("sortWithComp")
public fun <in T> sort(list: List<T>, comparator: java.util.Comparator<T>): Unit {
public fun <T> sort(list: MutableList<T>, comparator: java.util.Comparator<T>): Unit {
throw UnsupportedOperationException()
}