AA: handle PsiType conversion for recursive type parameter case

^KT-59598 Fixed
This commit is contained in:
Jinseong Jeon
2023-06-22 18:51:14 -07:00
committed by Ilya Kirillov
parent 2d132c6b73
commit e0fc0d96e5
7 changed files with 68 additions and 3 deletions
@@ -0,0 +1,14 @@
// WITH_STDLIB
fun testNotTransitive() {
class Test(val v: Int): Comparable<Test> {
override fun compareTo(other: Test): Int {
return v.compareTo(-other.v)
}
}
val list = listOf(Test(1), Test(2), Test(3), Test(4))
checkTransitiveComparator(<expr>list</expr>)
}
fun <T : Comparable<T>> checkTransitiveComparator(list: List<T>) {
}
@@ -0,0 +1,2 @@
KtType: kotlin.collections.List<Test>
PsiType: PsiType:List<? extends Comparable<? super Test>>