AA: handle PsiType conversion for recursive type parameter case (again)
^KT-64595 fixed
This commit is contained in:
committed by
Space Team
parent
93f1555322
commit
f1ce57f08f
+15
@@ -0,0 +1,15 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
fun <T> checkTransitiveComparator(list: List<T>, comparator: Comparator<T>) {
|
||||
class Wrapper(val item: T) : Comparable<Wrapper> {
|
||||
override fun toString(): String = item.toString()
|
||||
|
||||
override fun compareTo(other: Wrapper): Int {
|
||||
return comparator.compare(this.item, other.item)
|
||||
}
|
||||
}
|
||||
checkTransitiveComparator(<expr>list.map { Wrapper(it) }</expr>)
|
||||
}
|
||||
|
||||
fun <T : Comparable<T>> checkTransitiveComparator(list: List<T>) {
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
KtType: kotlin.collections.List<Wrapper>
|
||||
PsiType: PsiType:List<? extends Comparable<? super Wrapper<T>>>
|
||||
Reference in New Issue
Block a user