IR: Keep annotations in enum constructor during lowering

This commit is contained in:
Mikhael Bogdanov
2022-02-10 10:37:23 +01:00
parent aea0a38377
commit d810d93578
2 changed files with 1 additions and 2 deletions
@@ -132,6 +132,7 @@ private class EnumClassLowering(val context: JvmBackendContext) : ClassLoweringP
returnType = declaration.returnType
}.apply {
parent = declaration.parent
annotations = declaration.annotations
addValueParameter(
"\$enum\$name", context.irBuiltIns.stringType, JvmLoweredDeclarationOrigin.ENUM_CONSTRUCTOR_SYNTHETIC_PARAMETER
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: JVM_IR
@file:kotlin.jvm.JvmName("AnnotationsTest")
package test