[FIR] KT-52157: Fix missing type parameter annotations

This commit is contained in:
Nikolay Lunyak
2022-10-06 14:13:14 +03:00
committed by teamcity
parent 5347c3c7cc
commit dd861515ad
15 changed files with 72 additions and 2 deletions
@@ -52,6 +52,11 @@ class JvmBinaryAnnotationDeserializer(
return annotations.map { deserializeAnnotation(it, nameResolver) }
}
override fun loadTypeParameterAnnotations(typeParameterProto: ProtoBuf.TypeParameter, nameResolver: NameResolver): List<FirAnnotation> {
val annotations = typeParameterProto.getExtension(JvmProtoBuf.typeParameterAnnotation).orEmpty()
return annotations.map { deserializeAnnotation(it, nameResolver) }
}
override fun loadConstructorAnnotations(
containerSource: DeserializedContainerSource?,
constructorProto: ProtoBuf.Constructor,