KAPT+IR: Properly process repeatable annotation

~review fix
This commit is contained in:
Mikhael Bogdanov
2022-02-10 10:42:17 +01:00
parent d810d93578
commit 7ec19d015c
4 changed files with 103 additions and 2 deletions
@@ -63,6 +63,7 @@ class RepeatedAnnotationLowering(private val context: JvmBackendContext) : FileL
}
private fun transformAnnotations(annotations: List<IrConstructorCall>): List<IrConstructorCall> {
if (!context.state.classBuilderMode.generateBodies) return annotations
if (annotations.size < 2) return annotations
val annotationsByClass = annotations.groupByTo(mutableMapOf()) { it.symbol.owner.constructedClass }