FIR: Fix supertype scopes for local classes

Do not use ClassId as it can't be a key for local classes
This commit is contained in:
Denis.Zharkov
2021-02-17 16:21:22 +03:00
parent 3e420ca4e3
commit 23705a269f
2 changed files with 20 additions and 5 deletions
@@ -8,7 +8,22 @@ package org.jetbrains.kotlin.fir.symbols.impl
import org.jetbrains.kotlin.fir.symbols.ConeClassLikeLookupTag
import org.jetbrains.kotlin.name.ClassId
data class ConeClassLookupTagWithFixedSymbol(
class ConeClassLookupTagWithFixedSymbol(
override val classId: ClassId,
val symbol: FirClassSymbol<*>
) : ConeClassLikeLookupTag()
) : ConeClassLikeLookupTag() {
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as ConeClassLookupTagWithFixedSymbol
if (symbol != other.symbol) return false
return true
}
override fun hashCode(): Int {
return symbol.hashCode()
}
}