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