IR: Keep annotations in enum constructor during lowering
This commit is contained in:
+1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user