mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Attempt to infer a closure type based on its parameters and body and put it aside until contextual type becomes available or it has been determined that there is no context. Once all appropriate conditions are met, generate constraints for the body of the closure and bind it the previously inferred type. Doing so makes it possible to pass single-statement closures as an argument to a function builder parameter. Resolves: SR-11628 Resolves: rdar://problem/56340587
350 KiB
350 KiB