mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Provide a better, tailored diagnostic for result-type mismatches. (rdar://problem/19800727)
Swift SVN r25319
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user