[FIR] Make toAnnotationLookupTag() return null for generic annotations

This commit is contained in:
Nikolay Lunyak
2021-08-03 14:50:26 +03:00
parent 1a3f47badd
commit 4f2eb8b955
3 changed files with 8 additions and 7 deletions
@@ -837,7 +837,7 @@ class FirElementSerializer private constructor(
private fun MutableVersionRequirementTable.serializeVersionRequirements(annotations: List<FirAnnotationCall>): List<Int> =
annotations
.filter {
it.toAnnotationClassId().asSingleFqName() == RequireKotlinConstants.FQ_NAME
it.toAnnotationClassId()?.asSingleFqName() == RequireKotlinConstants.FQ_NAME
}
.mapNotNull(::serializeVersionRequirementFromRequireKotlin)
.map(::get)