[K/N][IR] Fixed wrong type in IR around enums

This commit is contained in:
Igor Chevdar
2024-02-02 15:43:27 +02:00
committed by Space Team
parent 17d79dafb1
commit 27a4cb6c12
@@ -358,6 +358,7 @@ internal class EnumClassLowering(val context: Context) : FileLoweringPass {
val statements = initializer.statements
val constructorCall = statements.last() as IrConstructorCall
statements[statements.lastIndex] = irInitInstanceCall(instance, constructorCall)
initializer.type = context.irBuiltIns.unitType
+initializer
}