Comparator<T> replaced with Comparator<in T> #KT-6030 Fixed

This commit is contained in:
Ilya Ryzhenkov
2014-11-05 18:18:16 +03:00
parent 24ee79aa2d
commit c2fabf5736
3 changed files with 5 additions and 5 deletions
@@ -4,10 +4,10 @@ import java.lang.*
import java.util.*
library("collectionsMax")
public fun max<T>(col : Collection<T>, comp : Comparator<T>) : T = noImpl
public fun max<T>(col : Collection<T>, comp : Comparator<in T>) : T = noImpl
library("collectionsSort")
public fun <T> sort(list: MutableList<T>): Unit = noImpl
library("collectionsSort")
public fun <T> sort(list: MutableList<T>, comparator: java.util.Comparator<T>): Unit = noImpl
public fun <T> sort(list: MutableList<T>, comparator: java.util.Comparator<in T>): Unit = noImpl