Revert "Provide a better, tailored diagnostic for result-type mismatches. (rdar://problem/19800727)"

This reverts commit r25319.

Swift SVN r25333
This commit is contained in:
Joe Pamer
2015-02-16 23:46:59 +00:00
parent 76d157079f
commit 81df1eeee0
10 changed files with 14 additions and 64 deletions

View File

@@ -1957,7 +1957,7 @@ ConstraintSystem::matchTypes(Type type1, Type type2, TypeMatchKind kind,
while (!parts.empty()) {
if (parts.back().getKind() == ConstraintLocator::ClosureResult) {
//increaseScore(SK_FunctionConversion);
increaseScore(SK_FunctionConversion);
return SolutionKind::Solved;
}
parts.pop_back();