Implement light method equality based on the original declarations

#KT-4350 Fixed
This commit is contained in:
Alexey Sedunov
2014-06-24 15:26:09 +04:00
parent 4d075b5437
commit c2aa824242
@@ -110,4 +110,9 @@ public class KotlinLightMethodForDeclaration(
}
override fun getUseScope(): SearchScope = origin.getUseScope()
override fun equals(other: Any?): Boolean =
other is KotlinLightMethodForDeclaration && getName() == other.getName() && origin == other.origin
override fun hashCode(): Int = getName().hashCode() * 31 + origin.hashCode()
}