[K/N][IR] Fixed wrong type in IR around enums
This commit is contained in:
+1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user