refactoring: removed logic of rendering 'expected type mismatch' error from constraint system

This commit is contained in:
Svetlana Isakova
2013-09-27 17:41:53 +04:00
parent af930012d5
commit 4666b0f50c
7 changed files with 88 additions and 7 deletions
@@ -486,9 +486,6 @@ public class ConstraintSystemImpl implements ConstraintSystem {
@NotNull
@Override
public TypeSubstitutor getResultingSubstitutor() {
if (getStatus().hasOnlyExpectedTypeMismatch()) {
return filterConstraintsOut(EXPECTED_TYPE_POSITION).getResultingSubstitutor();
}
return resultingSubstitutor;
}