From 62d2581faf8846630b2a84f19cb6d926ecef3414 Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Thu, 2 Jul 2020 12:57:39 +0300 Subject: [PATCH] JVM_IR: Don't generate annotations on generated inline class members --- .../jetbrains/kotlin/backend/jvm/codegen/FunctionCodegen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/codegen/FunctionCodegen.kt b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/codegen/FunctionCodegen.kt index b3b4e9d5163..8985624841f 100644 --- a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/codegen/FunctionCodegen.kt +++ b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/codegen/FunctionCodegen.kt @@ -71,7 +71,8 @@ class FunctionCodegen( if (irFunction.origin != IrDeclarationOrigin.FUNCTION_FOR_DEFAULT_PARAMETER && irFunction.origin != JvmLoweredDeclarationOrigin.SYNTHETIC_ACCESSOR && - irFunction.origin != IrDeclarationOrigin.ENUM_CLASS_SPECIAL_MEMBER + irFunction.origin != IrDeclarationOrigin.ENUM_CLASS_SPECIAL_MEMBER && + irFunction.origin != IrDeclarationOrigin.GENERATED_INLINE_CLASS_MEMBER ) { val skipNullabilityAnnotations = flags and Opcodes.ACC_PRIVATE != 0 || flags and Opcodes.ACC_SYNTHETIC != 0 object : AnnotationCodegen(classCodegen, context, skipNullabilityAnnotations) {