diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/SymbolTable.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/SymbolTable.kt index d7fffc6e25e..7a8b0d55a61 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/SymbolTable.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/SymbolTable.kt @@ -113,10 +113,10 @@ open class SymbolTable( val symbol = if (existing == null) { createSymbol() } else { - unboundSymbols.remove(existing) - existing + throw AssertionError("Symbol for $sig already exists") } val result = createOwner(symbol) + // TODO: try to get rid of this set(symbol.descriptor, symbol) return result }