From 79ce6145918cec5ea7da2b534cc86d63b7e63570 Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Thu, 2 Jun 2016 13:35:21 +0300 Subject: [PATCH] KT-11588 Type aliases: Fix EA-1117340 --- .../idea/caches/resolve/IDELightClassGenerationSupport.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/IDELightClassGenerationSupport.kt b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/IDELightClassGenerationSupport.kt index 53fce433d18..fbc6e6aef2a 100644 --- a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/IDELightClassGenerationSupport.kt +++ b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/IDELightClassGenerationSupport.kt @@ -275,8 +275,8 @@ class IDELightClassGenerationSupport(private val project: Project) : LightClassG ForceResolveUtil.forceResolveAllContents(descriptor) } } - else if (declaration is KtClassOrObject) { - // Do nothing: we are not interested in classes + else if (declaration is KtClassOrObject || declaration is KtTypeAlias) { + // Do nothing: we are not interested in classes or type aliases } else { LOG.error("Unsupported declaration kind: " + declaration + " in file " + file.name + "\n" + file.text)