diff --git a/idea/src/org/jetbrains/jet/plugin/completion/smart/TypeInstantiationItems.kt b/idea/src/org/jetbrains/jet/plugin/completion/smart/TypeInstantiationItems.kt index 4c0dd3e4dde..1aa6420d3b4 100644 --- a/idea/src/org/jetbrains/jet/plugin/completion/smart/TypeInstantiationItems.kt +++ b/idea/src/org/jetbrains/jet/plugin/completion/smart/TypeInstantiationItems.kt @@ -129,7 +129,7 @@ class TypeInstantiationItems( private fun createTypeInstantiationItem( classifier: ClassDescriptor, - typeArgs: List, + typeArgs: List, tail: Tail? ): LookupElement? { var lookupElement = LookupElementFactory.DEFAULT.createLookupElement(classifier, resolutionFacade, bindingContext) @@ -152,7 +152,7 @@ class TypeInstantiationItems( var allLookupStrings = setOf(lookupString) // drop "in" and "out" from type arguments - they cannot be used in constructor call - val typeArgsToUse = typeArgs.map { if (it != null) TypeProjectionImpl(Variance.INVARIANT, it.getType()) else null } + val typeArgsToUse = typeArgs.map { TypeProjectionImpl(Variance.INVARIANT, it.getType()) } var itemText = lookupString + DescriptorRenderer.SHORT_NAMES_IN_TYPES.renderTypeArguments(typeArgsToUse) var signatureText: String? = null @@ -269,7 +269,7 @@ class TypeInstantiationItems( private inner class InheritanceSearcher( val psiClass: PsiClass, val classDescriptor: ClassDescriptor, - val typeArgs: List, + val typeArgs: List, val tail: Tail?) : InheritanceItemsSearcher { private val typeConstructor = classDescriptor.getTypeConstructor()