google / promises

Promises is a modern framework that provides a synchronization construct for Swift and Objective-C.
Apache License 2.0
3.8k stars 294 forks source link

Add explicit Promise closure return type #97

Closed vmalyi closed 5 years ago

vmalyi commented 5 years ago

To avoid "Unable to infer complex closure return type; add explicit type to disambiguate" error (#84), an explicit Promise closure return type has been added wherever needed.

ghost commented 5 years ago

Thank you for the PR! Left a couple of comments for the then code snippets.

ghost commented 5 years ago

Closing as it doesn't appear these changes are needed since the compiler can infer the closure type.