[FIR, IR] Cleanup: convert vector of actuals to scalar of a single actual in AbstractExpectActualChecker
Review: https://jetbrains.team/p/kt/reviews/12750/timeline `AbstractExpectActualChecker` works on pairs obtain from `AbstractExpectActualMatcher` and the last one always returns single actual for single expect. That's why handling of multiple actuals doesn't make sense
This commit is contained in:
+2
-3
@@ -6,7 +6,6 @@
|
||||
package org.jetbrains.kotlin.backend.common.actualizer
|
||||
|
||||
import org.jetbrains.kotlin.KtDiagnosticReporterWithImplicitIrBasedContext
|
||||
import org.jetbrains.kotlin.config.LanguageVersionSettings
|
||||
import org.jetbrains.kotlin.incremental.components.ExpectActualTracker
|
||||
import org.jetbrains.kotlin.ir.IrElement
|
||||
import org.jetbrains.kotlin.ir.PsiIrFileEntry
|
||||
@@ -230,9 +229,9 @@ private class ExpectActualLinkCollector : IrElementVisitor<Unit, ExpectActualLin
|
||||
context,
|
||||
)
|
||||
if (matched != null) {
|
||||
AbstractExpectActualChecker.checkSingleExpectTopLevelDeclarationAgainstPotentialActuals(
|
||||
AbstractExpectActualChecker.checkSingleExpectTopLevelDeclarationAgainstMatchedActual(
|
||||
expectSymbol,
|
||||
listOf(matched),
|
||||
matched,
|
||||
context,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user