From e4c2fa1080aaa0379771908799618d28600946fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Segovia=20C=C3=B3rdoba?= Date: Mon, 17 Jul 2023 16:01:48 +0200 Subject: [PATCH] [IR] Improve printing the value parameter when there is an error --- .../jetbrains/kotlin/backend/jvm/codegen/AnnotationCodegen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ir/backend.jvm/codegen/src/org/jetbrains/kotlin/backend/jvm/codegen/AnnotationCodegen.kt b/compiler/ir/backend.jvm/codegen/src/org/jetbrains/kotlin/backend/jvm/codegen/AnnotationCodegen.kt index 88624a1dbdb..47b27ad08d4 100644 --- a/compiler/ir/backend.jvm/codegen/src/org/jetbrains/kotlin/backend/jvm/codegen/AnnotationCodegen.kt +++ b/compiler/ir/backend.jvm/codegen/src/org/jetbrains/kotlin/backend/jvm/codegen/AnnotationCodegen.kt @@ -216,7 +216,7 @@ abstract class AnnotationCodegen( else if (param.defaultValue != null) continue // Default value will be supplied by JVM at runtime. else if (context.state.classBuilderMode.generateBodies) //skip error for KAPT - error("No value for annotation parameter $param") + error("No value for annotation parameter ${param.render()}") } }