[FIR] add missing transformation of annotation type arguments
^KT-62679
This commit is contained in:
committed by
Space Team
parent
27c5a0b60d
commit
32ed81440c
+2
@@ -355,6 +355,7 @@ open class FirTypeResolveTransformer(
|
||||
else -> shouldNotBeCalled()
|
||||
}
|
||||
FirAnnotationResolvePhase.CompilerRequiredAnnotations -> {
|
||||
annotationCall.transformTypeArguments(this, data)
|
||||
annotationCall.replaceAnnotationResolvePhase(FirAnnotationResolvePhase.Types)
|
||||
val alternativeResolvedTypeRef =
|
||||
originalTypeRef.delegatedTypeRef?.transformSingle(this, data) ?: return annotationCall
|
||||
@@ -378,6 +379,7 @@ open class FirTypeResolveTransformer(
|
||||
}
|
||||
else -> {
|
||||
val transformedTypeRef = originalTypeRef.transformSingle(this, data)
|
||||
annotationCall.transformTypeArguments(this, data)
|
||||
annotationCall.replaceAnnotationResolvePhase(FirAnnotationResolvePhase.Types)
|
||||
annotationCall.replaceAnnotationTypeRef(transformedTypeRef)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user