From b3ecf84c43883d553c366fecbd7b1bf1a0455bac Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Thu, 26 Dec 2019 00:23:19 +0300 Subject: [PATCH] Improve unexpected declaration exception message --- .../ir/backend/js/transformers/irToJs/JsClassGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/JsClassGenerator.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/JsClassGenerator.kt index 5b0b6fe357d..e8adcbbf38b 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/JsClassGenerator.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/JsClassGenerator.kt @@ -55,7 +55,7 @@ class JsClassGenerator(private val irClass: IrClass, val context: JsGenerationCo is IrField -> { } else -> { - error("Unexpected declaration in class: $declaration") + error("Unexpected declaration in class: ${declaration.descriptor}") } } }