Fixed all members are grayed in global context

This commit is contained in:
Valentin Kipyatkov
2014-12-02 03:19:13 +03:00
parent e5e27d028d
commit 05bb32545f
2 changed files with 3 additions and 2 deletions
@@ -207,7 +207,7 @@ public class LookupElementFactory(
if (receiverTypes == null) return null
if (descriptor !is CallableMemberDescriptor) return null
val isReceiverNullable = receiverTypes.all { it.isNullable() }
val isReceiverNullable = receiverTypes.isNotEmpty() && receiverTypes.all { it.isNullable() }
val receiverParameter = descriptor.getExtensionReceiverParameter()
if (receiverParameter != null) {
@@ -3,4 +3,5 @@ val test = "Hello"
val more = test<caret>
// EXIST: test, testing
// EXIST: { lookupString: "test", itemText: "test", tailText: " (<root>)", typeText: "String", attributes: "" }
// EXIST: { lookupString: "testing", itemText: "testing", tailText: " (<root>)", typeText: "Int", attributes: "" }