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
This commit is contained in:
Pavel V. Talanov
2015-10-30 16:39:41 +03:00
parent 8c4db9bd35
commit 226c2e3b5c
@@ -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()