Commit Graph

2 Commits

Author SHA1 Message Date
Nate Chandler
859ffdc477 Used expected-error to test fixit. 2019-04-24 09:59:54 -07:00
Nate Chandler
4f269fc6c0 Added diagnostic for dangling expression at end.
If the final expression in a function or closure which is missing a
return has the appropriate type, rather than producing the usual
diagnostic about a missing return, produce a diagnostic with a fixit to
insert a return before thatn final expression.

h/t Nate Cook
2019-04-24 09:59:54 -07:00