AA: handle PsiType conversion for recursive type parameter case (again)

^KT-64595 fixed
This commit is contained in:
Jinseong Jeon
2023-12-27 20:22:24 -08:00
committed by Space Team
parent 93f1555322
commit f1ce57f08f
8 changed files with 54 additions and 13 deletions
@@ -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>) {
}
@@ -0,0 +1,2 @@
KtType: kotlin.collections.List<Wrapper>
PsiType: PsiType:List<? extends Comparable<? super Wrapper<T>>>