Better logging + arguemnts resolve on inference failure
This commit is contained in:
@@ -505,7 +505,7 @@ public class CallResolver {
|
||||
}
|
||||
else {
|
||||
tracing.typeInferenceFailed(temporaryTrace, solution.getStatus());
|
||||
candidateCall.setStatus(OTHER_ERROR);
|
||||
candidateCall.setStatus(checkAllValueArguments(scope, tracing, task, candidateCall));
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
+1
@@ -409,6 +409,7 @@ public class ConstraintSystemImpl implements ConstraintSystem {
|
||||
KnownType knownBoundType = (KnownType) upperBound;
|
||||
boolean ok = constraintExpander.isSubtypeOf(jetType, knownBoundType.getType());
|
||||
if (!ok) {
|
||||
listener.error("Error while expanding '" + jetType + " :< " + knownBoundType.getType() + "'");
|
||||
return new Solution().registerError("Mismatch while expanding constraints");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user