From 6eb534fca8ec0737ad7e1d1051fe7f2e0de049a6 Mon Sep 17 00:00:00 2001 From: Stanislav Erokhin Date: Fri, 18 Aug 2017 22:07:40 +0300 Subject: [PATCH] [NI] Fix processParts in KotlinResolutionCandidate --- .../kotlin/resolve/calls/model/ResolutionCandidate.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/model/ResolutionCandidate.kt b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/model/ResolutionCandidate.kt index fb0d781341e..f8e8579626e 100644 --- a/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/model/ResolutionCandidate.kt +++ b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/model/ResolutionCandidate.kt @@ -107,6 +107,9 @@ class KotlinResolutionCandidate( partIndex++ workStep -= workCount } + else { + break + } } if (partIndex < resolutionSequence.size) { if (processPart(resolutionSequence[partIndex], stopOnFirstError, workStep)) return