AA: handle PsiType conversion for recursive type parameter case
^KT-59598 Fixed
This commit is contained in:
committed by
Ilya Kirillov
parent
2d132c6b73
commit
e0fc0d96e5
+14
@@ -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>) {
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
KtType: kotlin.collections.List<Test>
|
||||
PsiType: PsiType:List<? extends Comparable<? super Test>>
|
||||
Reference in New Issue
Block a user