Skip to content

Commit d369d06

Browse files
ting-yuanKSP Auto Pick
authored and
KSP Auto Pick
committed
KSP1: fix KSTypeArgument.parent
(cherry picked from commit 0dfb6de)
1 parent 97f158d commit d369d06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler-plugin/src/main/kotlin/com/google/devtools/ksp/symbol/impl/binary/KSClassifierReferenceDescriptorImpl.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class KSClassifierReferenceDescriptorImpl private constructor(
6868
}
6969

7070
override val typeArguments: List<KSTypeArgument> by lazy {
71-
arguments.map { KSTypeArgumentDescriptorImpl.getCached(it, origin, this.parent) }
71+
arguments.map { KSTypeArgumentDescriptorImpl.getCached(it, origin, this) }
7272
}
7373

7474
override fun referencedName(): String {

test-utils/testData/api/equivalentJavaWildcards.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
// - - INVARIANT X : X -> X
7878
// - - COVARIANT Y : Y -> Y
7979
// p8.getter() : B<A<X, out Y>> -> B<A<X, Y>>
80-
// - INVARIANT A<X, out Y> : A<X, out Y> -> A<in X, Y>
80+
// - INVARIANT A<X, out Y> : A<X, out Y> -> A<X, Y>
8181
// - - INVARIANT X : X -> X
8282
// - - COVARIANT Y : Y -> Y
8383
// v1 : A<X, X> -> A<in X, out X>

0 commit comments

Comments
 (0)