Revert "[LL API] Fix vararg parameter matching in PSI-FIR comparison"

This reverts commit 2d8c3c5aaf.
This commit is contained in:
Yan Zhulanow
2023-03-07 02:40:10 +09:00
parent 07fdbeca19
commit 0044f49af8
@@ -182,11 +182,8 @@ object KtDeclarationAndFirDeclarationEqualityChecker {
psiTypeReference: KtTypeReference,
coneTypeReference: FirTypeRef,
isVararg: Boolean
): Boolean {
val psiText = psiTypeReference.toKotlinTypReference().renderTypeAsKotlinType(isVararg)
val firText = coneTypeReference.renderTypeAsKotlinType(isVararg)
return psiText == firText
}
): Boolean =
psiTypeReference.toKotlinTypReference().renderTypeAsKotlinType(isVararg) == coneTypeReference.renderTypeAsKotlinType()
@Suppress("DEPRECATION_ERROR")
private fun KtTypeReference.toKotlinTypReference(): FirTypeRef {