From 5b3e83d5475e33a81092054b166ed064c3d18750 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Tue, 25 Aug 2015 16:27:26 +0300 Subject: [PATCH] Deprecated method usage fix --- .../src/org/jetbrains/kotlin/idea/completion/CompletionUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/CompletionUtils.kt b/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/CompletionUtils.kt index 484ec6da24c..a4d906b3298 100644 --- a/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/CompletionUtils.kt +++ b/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/CompletionUtils.kt @@ -330,7 +330,7 @@ fun LookupElementFactory.createLookupElementForType(type: JetType): LookupElemen if (KotlinBuiltIns.isExactFunctionOrExtensionFunctionType(type)) { val text = IdeDescriptorRenderers.SOURCE_CODE_SHORT_NAMES_IN_TYPES.renderType(type) - val baseLookupElement = LookupElementBuilder.create(text).setIcon(JetIcons.LAMBDA) + val baseLookupElement = LookupElementBuilder.create(text).withIcon(JetIcons.LAMBDA) return BaseTypeLookupElement(type, baseLookupElement) } else {