diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/scopes/WritableScopeImpl.kt b/compiler/frontend/src/org/jetbrains/kotlin/resolve/scopes/WritableScopeImpl.kt index 92fa18a6c09..c74dcca9c49 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/scopes/WritableScopeImpl.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/scopes/WritableScopeImpl.kt @@ -39,7 +39,6 @@ public class WritableScopeImpl(override val workerScope: JetScope, : AbstractScopeAdapter(), WritableScope { private val explicitlyAddedDescriptors = SmartList() - private val ownDeclaredDescriptors = ArrayList() private var functionGroups: SetMultimap? = null @@ -122,7 +121,6 @@ public class WritableScopeImpl(override val workerScope: JetScope, variableOrClassDescriptors!!.put(name, descriptor) explicitlyAddedDescriptors.add(descriptor) - ownDeclaredDescriptors.add(descriptor) } override fun addVariableDescriptor(variableDescriptor: VariableDescriptor) { @@ -206,7 +204,7 @@ public class WritableScopeImpl(override val workerScope: JetScope, super.getImplicitReceiversHierarchy() } - override fun getOwnDeclaredDescriptors(): Collection = ownDeclaredDescriptors + override fun getOwnDeclaredDescriptors(): Collection = explicitlyAddedDescriptors override fun toString(): String { return javaClass.getSimpleName() + "@" + Integer.toHexString(System.identityHashCode(this)) + " " + debugName + " for " + getContainingDeclaration()