[FIR2IR] Create annotations for IrConstructor

^KT-62262 Fixed
This commit is contained in:
Vladimir Sukharev
2023-10-04 08:24:05 +02:00
committed by Space Team
parent e342d7ff66
commit fa4de48d0e
@@ -231,6 +231,7 @@ class Fir2IrCallableDeclarationsGenerator(val components: Fir2IrComponents) : Fi
isExternal = false,
).apply {
metadata = FirMetadataSource.Function(constructor)
annotationGenerator.generate(this, constructor)
// Add to cache before generating parameters to prevent an infinite loop when an annotation value parameter is annotated
// with the annotation itself.
@OptIn(LeakedDeclarationCaches::class)