From 074c6c8dcd3ccdaa215b2da3d0f7c8123eb789c6 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Fri, 25 Mar 2016 13:31:52 +0300 Subject: [PATCH] Minor --- .../kotlin/idea/completion/smart/TypeInstantiationItems.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/smart/TypeInstantiationItems.kt b/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/smart/TypeInstantiationItems.kt index 9939b42c712..57b28885fce 100644 --- a/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/smart/TypeInstantiationItems.kt +++ b/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/smart/TypeInstantiationItems.kt @@ -240,8 +240,7 @@ class TypeInstantiationItems( lookupElement = lookupElement.assignSmartCompletionPriority(SmartCompletionItemPriority.INSTANTIATION) } - //TODO: cannot use lookupElement from context due to KT-6344 - class InstantiationLookupElement(lookupElement: LookupElement) : LookupElementDecorator(lookupElement) { + class InstantiationLookupElement : LookupElementDecorator(lookupElement) { override fun getLookupString() = lookupString override fun getAllLookupStrings() = allLookupStrings @@ -275,7 +274,7 @@ class TypeInstantiationItems( override fun hashCode() = lookupString.hashCode() } - return InstantiationLookupElement(lookupElement).addTail(tail) + return InstantiationLookupElement().addTail(tail) } private fun KotlinType.areTypeParametersUsedInside(freeParameters: Collection): Boolean {