Commits

Joe Pamer committed 0562411bb2c
Improve support for diagnosing errors that result from contextual or conversion type mismatches. Doing so allows us to improve our diagnostics for a few important cases: - Situations where the type of a return statement's result expression doesn't line up with the function's type annotation. - Situations where the type of an initializer expression doesn't line up with its declaration's type pattern. - Situations where we assume a conversion to a built-in protocol must take place, such as in if-statement conditionals. (Addresses rdar://problem/19224776, rdar://problem/19422107, rdar://problem/19422156, rdar://problem/19547806 and lots of other dupes.) Swift SVN r24853