From 226c2e3b5c082e9d771c2e18ba98cd31fe9bc09c Mon Sep 17 00:00:00 2001 From: "Pavel V. Talanov" Date: Fri, 30 Oct 2015 16:39:41 +0300 Subject: [PATCH] Implement getParent for KotlinLightClassForDecompiledDeclaration Fixes a bug where java resolve would be unable to resolve return types of CompiledKotlinEnum.values()/valueOf() methods Tested by EnumAutoGeneratedMethods java against kotlin checker test --- .../caches/resolve/KotlinLightClassForDecompiledDeclaration.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/KotlinLightClassForDecompiledDeclaration.kt b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/KotlinLightClassForDecompiledDeclaration.kt index 89c58dbc90d..f25f713d126 100644 --- a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/KotlinLightClassForDecompiledDeclaration.kt +++ b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/KotlinLightClassForDecompiledDeclaration.kt @@ -46,6 +46,8 @@ class KotlinLightClassForDecompiledDeclaration( override fun getFqName() = fqName + override fun getParent() = clsClass.parent + override fun equals(other: Any?): Boolean = other is KotlinLightClassForDecompiledDeclaration && getFqName() == other.getFqName()