FIR: support proper argument mapping for substitution overrides

Related to KT-52762
This commit is contained in:
Mikhail Glukhikh
2022-06-20 11:09:32 +02:00
committed by teamcity
parent a3ee2d7349
commit 481607df43
2 changed files with 2 additions and 3 deletions
@@ -383,8 +383,7 @@ private class FirCallArgumentsProcessor(
addDiagnostic(NameNotFound(argument, function))
}
} else {
// TODO: should we check also substitution overrides? Performance!
if (symbol != null && function.isIntersectionOverride) {
if (symbol != null && function.isSubstitutionOrIntersectionOverride) {
matchedIndex = parameters.indexOfFirst { originalParameter ->
originalParameter.name == argument.name
}