araqnid
04/29/2018, 1:05 AMComparator<T>
have input variance? I was trying to assign a Collator (which for some reason is a Comparator<Object>
in Java) to Comparator<String>
. Is it because it’s simply a typealias?Andreas Sinz
04/29/2018, 8:52 AMaraqnid
04/29/2018, 2:13 PMComparator(collator::compare)
thoughAndreas Sinz
04/30/2018, 11:59 AMComparator<T>
is defined in the java stdlib, so kotlin is unable to change that