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:
+17
-2
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user