[LL API] Fix vararg parameter matching in PSI-FIR comparison
This commit is contained in:
+5
-2
@@ -182,8 +182,11 @@ object KtDeclarationAndFirDeclarationEqualityChecker {
|
||||
psiTypeReference: KtTypeReference,
|
||||
coneTypeReference: FirTypeRef,
|
||||
isVararg: Boolean
|
||||
): Boolean =
|
||||
psiTypeReference.toKotlinTypReference().renderTypeAsKotlinType(isVararg) == coneTypeReference.renderTypeAsKotlinType()
|
||||
): Boolean {
|
||||
val psiText = psiTypeReference.toKotlinTypReference().renderTypeAsKotlinType(isVararg)
|
||||
val firText = coneTypeReference.renderTypeAsKotlinType(isVararg)
|
||||
return psiText == firText
|
||||
}
|
||||
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
private fun KtTypeReference.toKotlinTypReference(): FirTypeRef {
|
||||
|
||||
Reference in New Issue
Block a user