Remove classId from FirClassSymbol equals / hashCode

This commit is contained in:
Mikhail Glukhikh
2019-05-31 17:38:25 +03:00
parent 792c26decc
commit a10deb5f69
@@ -16,11 +16,10 @@ class FirClassSymbol(override val classId: ClassId) : ConeClassSymbol, AbstractF
override fun toLookupTag(): ConeClassLikeLookupTag = ConeClassLikeLookupTagImpl(classId)
override fun equals(other: Any?): Boolean =
other is FirClassSymbol && classId == other.classId && fir == other.fir
other is FirClassSymbol && fir == other.fir
override fun hashCode(): Int {
var result = 31
result = result * 19 + classId.hashCode()
result = result * 19 + fir.hashCode()
return result
}