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
|
returnType = declaration.returnType
|
||||||
}.apply {
|
}.apply {
|
||||||
parent = declaration.parent
|
parent = declaration.parent
|
||||||
|
annotations = declaration.annotations
|
||||||
|
|
||||||
addValueParameter(
|
addValueParameter(
|
||||||
"\$enum\$name", context.irBuiltIns.stringType, JvmLoweredDeclarationOrigin.ENUM_CONSTRUCTOR_SYNTHETIC_PARAMETER
|
"\$enum\$name", context.irBuiltIns.stringType, JvmLoweredDeclarationOrigin.ENUM_CONSTRUCTOR_SYNTHETIC_PARAMETER
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
|
|
||||||
@file:kotlin.jvm.JvmName("AnnotationsTest")
|
@file:kotlin.jvm.JvmName("AnnotationsTest")
|
||||||
package test
|
package test
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user