Do not freeze enum in new MM
This commit is contained in:
committed by
Space
parent
786999bcfe
commit
e5ea7f5b4e
-3
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user