[SLC] compareSymbolPointers: result of comparison of two 'null' symbols should be 'false'
^KT-54051
This commit is contained in:
committed by
Space Team
parent
94df0465d6
commit
3b1ec3752d
+2
-1
@@ -305,7 +305,8 @@ internal fun KtSymbolPointer<*>.isValid(ktModule: KtModule): Boolean = analyzeFo
|
||||
|
||||
internal fun <T : KtSymbol> compareSymbolPointers(ktModule: KtModule, left: KtSymbolPointer<T>, right: KtSymbolPointer<T>): Boolean {
|
||||
return left === right || analyzeForLightClasses(ktModule) {
|
||||
left.restoreSymbol() == right.restoreSymbol()
|
||||
val leftSymbol = left.restoreSymbol()
|
||||
leftSymbol != null && leftSymbol == right.restoreSymbol()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user