Commits

Chris Lattner committed 477b614e05c
diagnose a mismatch of a closure body with its inferred return type. For example: t.swift:2:39: error: invalid conversion from type 'double' to 'int' var closure5 : (double) -> int = { $0 + 1.0 } ~~~^~~~~ t.swift:2:34: note: while converting closure body to inferred return type 'int' var closure5 : (double) -> int = { $0 + 1.0 } ^ ~~~~~~~~ t.swift:2:1: note: while converting 'var' initializer to declared type '(double) -> int' var closure5 : (double) -> int = { $0 + 1.0 } ^ Swift SVN r1158