FIR Completion: Fix completion with error type as receiver
- When type is error, the completion should not show anything; instead, it was showing as if the explicit receiver was not there
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ private object KotlinAvailableScopesCompletionContributor {
|
|||||||
|
|
||||||
nonExtensionMembers.forEach(::addToCompletion)
|
nonExtensionMembers.forEach(::addToCompletion)
|
||||||
extensionNonMembers.forEach(::addToCompletion)
|
extensionNonMembers.forEach(::addToCompletion)
|
||||||
} else {
|
} else if (possibleReceiver == null) {
|
||||||
val extensionNonMembers = implicitScopes
|
val extensionNonMembers = implicitScopes
|
||||||
.getCallableSymbols()
|
.getCallableSymbols()
|
||||||
.filter { !it.isExtension || it.canBeCalledWith(implicitReceivers) }
|
.filter { !it.isExtension || it.canBeCalledWith(implicitReceivers) }
|
||||||
|
|||||||
Reference in New Issue
Block a user