Commit Graph

1 Commits

Author SHA1 Message Date
Doug Gregor
6d514c17cf When type-checking explicit closure expressions within the
constraint-based type checker, include the body of the explicit
closure within the set of constraints. This allows type information to
flow from the body expression, so that we can type-check, e.g.,

  map(new Int[N], { $0.toString() })

to a String[] without context information. Fixes <rdar://problem/11229738>.


Swift SVN r2794
2012-08-27 19:01:29 +00:00