KT-35454 Weird implementation of KtUltraLightFieldImpl.isEquivalentTo
This commit is contained in:
committed by
igoriakovlev
parent
f45c11c6f2
commit
c9cba34d67
@@ -73,7 +73,7 @@ internal open class KtUltraLightFieldImpl protected constructor(
|
||||
KtUltraLightSimpleModifierListField(support, declaration, this, modifiers)
|
||||
}
|
||||
|
||||
override fun isEquivalentTo(another: PsiElement?): Boolean = kotlinOrigin == another
|
||||
override fun isEquivalentTo(another: PsiElement?): Boolean = kotlinOrigin == another || (another as? KtLightField)?.kotlinOrigin == kotlinOrigin
|
||||
|
||||
override fun getModifierList(): PsiModifierList = modifierList
|
||||
|
||||
|
||||
Reference in New Issue
Block a user