diff --git a/compiler/resolution/src/org/jetbrains/kotlin/resolve/scopes/utils/ScopeUtils.kt b/compiler/resolution/src/org/jetbrains/kotlin/resolve/scopes/utils/ScopeUtils.kt index 256c46e6148..157c3357983 100644 --- a/compiler/resolution/src/org/jetbrains/kotlin/resolve/scopes/utils/ScopeUtils.kt +++ b/compiler/resolution/src/org/jetbrains/kotlin/resolve/scopes/utils/ScopeUtils.kt @@ -204,7 +204,7 @@ fun LexicalScope.replaceImportingScopes(importingScopeChain: ImportingScope?): L fun LexicalScope.createScopeForDestructuring(newReceiver: ReceiverParameterDescriptor?): LexicalScope { return LexicalScopeImpl( parent, ownerDescriptor, isOwnerDescriptorAccessibleByLabel, - newReceiver ?: implicitReceiver, + newReceiver, LexicalScopeKind.FUNCTION_HEADER_FOR_DESTRUCTURING ) }