Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.0.0 does not compile in Swift 3 #52

Closed
leepfrog opened this issue Sep 25, 2017 · 1 comment
Closed

Version 1.0.0 does not compile in Swift 3 #52

leepfrog opened this issue Sep 25, 2017 · 1 comment
Labels
Milestone

Comments

@leepfrog
Copy link

I am currently unable to build Hydra 1.0.0 in Swift 3 for the MacOS target.

In Promise+Recover.swift, the recover method does not compile correctly because it is unable to resolve which then method to invoke. The build error is: /Hydra/Promise+Recover.swift:47:11: Ambiguous reference to member 'then(in:_:)'

If you remove the lines:
.cancelled(in: ctx, { _ -> Void in operation.cancel() })

then the swift compiler is able to resolve the appropriate then helper and the framework compiles.

@malcommac
Copy link
Owner

Fixed in 1.0.1.
See it on swift-3 branch https://github.com/malcommac/Hydra/tree/swift-3

@malcommac malcommac added this to the 1.0.1 milestone Oct 27, 2017
@malcommac malcommac added the bug label Oct 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants