Fix compatibility resolve for references with multiple outer candidates
#KT-39533 Fixed
This commit is contained in:
-1
@@ -110,7 +110,6 @@ class CallableReferenceResolver(
|
||||
chosenCandidate.diagnostics.forEach {
|
||||
val transformedDiagnostic = when (it) {
|
||||
is CompatibilityWarning -> CompatibilityWarningOnArgument(argument, it.candidate)
|
||||
is LowerPriorityToPreserveCompatibility -> return@forEach
|
||||
else -> it
|
||||
}
|
||||
diagnosticsHolder.addDiagnostic(transformedDiagnostic)
|
||||
|
||||
Reference in New Issue
Block a user