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:
Roman Golyshev
2020-08-19 14:23:12 +03:00
parent bca9754a7b
commit 539d2bc01f
@@ -92,7 +92,7 @@ private object KotlinAvailableScopesCompletionContributor {
nonExtensionMembers.forEach(::addToCompletion)
extensionNonMembers.forEach(::addToCompletion)
} else {
} else if (possibleReceiver == null) {
val extensionNonMembers = implicitScopes
.getCallableSymbols()
.filter { !it.isExtension || it.canBeCalledWith(implicitReceivers) }