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

Swift SVN r25319
This commit is contained in:
Joe Pamer
2015-02-16 20:00:04 +00:00
parent 7749087d3a
commit 6e9ddbafd0
10 changed files with 64 additions and 14 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();