diff --git a/compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/Psi2IrTranslator.kt b/compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/Psi2IrTranslator.kt index 028e2ec7803..937d64a3edb 100644 --- a/compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/Psi2IrTranslator.kt +++ b/compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/Psi2IrTranslator.kt @@ -92,7 +92,8 @@ class Psi2IrTranslator( moduleGenerator.generateUnboundSymbolsAsDependencies(irProviders) deserializers.forEach { it.postProcess() } - assert(context.symbolTable.allUnbound.isEmpty()) + val allUnbound = context.symbolTable.allUnbound + assert(allUnbound.isEmpty()) { "Unbound symbols not allowed\n${allUnbound.joinToString("\n\t", "\t")}" } postprocessingSteps.forEach { it.invoke(irModule) } // assert(context.symbolTable.allUnbound.isEmpty()) // TODO: fix IrPluginContext to make it not produce additional external reference