Do not freeze enum in new MM

This commit is contained in:
Alexander Shabalin
2021-03-26 15:43:44 +03:00
committed by Space
parent 786999bcfe
commit e5ea7f5b4e
2 changed files with 1 additions and 4 deletions
@@ -303,9 +303,6 @@ internal class EnumClassLowering(val context: Context) : FileLoweringPass {
else -> error("Unexpected initializer: $initializer")
}
}
+irCall(this@EnumClassLowering.context.ir.symbols.freeze, listOf(arrayType)).apply {
extensionReceiver = irGet(receiver)
}
}
(constructor.body as IrBlockBody).statements += valuesInitializer
}
@@ -1173,7 +1173,7 @@ task enum_nested(type: KonanLocalTest) {
}
task enum_isFrozen(type: KonanLocalTest) {
goldValue = "true\n"
goldValue = isExperimentalMM ? "false\n" : "true\n"
source = "codegen/enum/isFrozen.kt"
}