FIR: preliminary refactoring of delegate resolve

This commit is contained in:
Mikhail Glukhikh
2021-08-04 18:45:40 +03:00
committed by teamcity
parent a19495cb26
commit 4d9e919f7e
23 changed files with 62 additions and 48 deletions
@@ -231,6 +231,15 @@ private fun mapInapplicableCandidateError(
rootCause.isCastToNotNull
)
is DslScopeViolation -> FirErrors.DSL_SCOPE_VIOLATION.createOn(source, rootCause.calleeSymbol)
is InferenceError -> {
rootCause.constraintError.toDiagnostic(
source,
qualifiedAccessSource,
session.typeContext,
mutableSetOf(),
diagnostic.candidate
)
}
else -> genericDiagnostic
}
}.distinct()