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 {