[FIR] add missed transformations for type annotations inside FirField

This issue doesn't affect the compiler because delegate field shares
annotation instance with the containing class, so it will be resolved
before field anyway.
In Low Level FIR we didn't notice this issue because we don't have
isResolved checks for type annotations (KT-63681)

^KT-63042
^KT-63681
This commit is contained in:
Dmitrii Gridin
2023-11-21 18:22:04 +01:00
committed by Space Team
parent 38c959ba5a
commit 5a54520723
11 changed files with 83 additions and 76 deletions
@@ -307,6 +307,8 @@ private class FirDeclarationsResolveTransformerForAnnotationArguments(
override fun transformField(field: FirField, data: ResolutionMode): FirField {
context.withField(field) {
field.transformAnnotations(transformer, data)
.transformReturnTypeRef(transformer, data)
.transformBackingField(transformer, data)
}
return field