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

Compilation error by Xcode7.0 beta6. #4

Closed
chenjsa opened this issue Sep 8, 2015 · 2 comments
Closed

Compilation error by Xcode7.0 beta6. #4

chenjsa opened this issue Sep 8, 2015 · 2 comments

Comments

@chenjsa
Copy link

chenjsa commented Sep 8, 2015

Hi,
I integrated prephirences into my project by cocopoads, the code is pod 'Prephirences', :git => 'https://github.com/phimage/Prephirences.git', :branch => '2.0.0'.
Now in Xcode7.0 beta6 i get a compilation error. Type 'Bool' does not comform to protocol 'LogicalOperationsType', in Preference.swift line 256.
I don't know how to fix it, could you please help me?
Thank you!

@chenjsa chenjsa changed the title Compiled error by Xcode7.0 beta6. Compilation error by Xcode7.0 beta6. Sep 8, 2015
@phimage
Copy link
Owner

phimage commented Sep 8, 2015

Ok I have not already updated my xcode 7, I will fix after updated (PR is welcome)

LogicalOperationsType in my code

    func && (left: Self, @autoclosure right:  () -> Self) -> Self // AND
    func || (left: Self, @autoclosure right:  () -> Self) -> Self // OR
    prefix func ! (left: Self) -> Self // NOT

Bool must not in beta6 implement this operators, maybe change into methods signature

phimage added a commit that referenced this issue Sep 12, 2015
@phimage
Copy link
Owner

phimage commented Sep 12, 2015

Now Bool implement operator with closure that can throw exception

func && (left: Self, @autoclosure right:  () throws -> Self) rethrows -> Self // AND
func || (left: Self, @autoclosure right:  () throws -> Self) rethrows -> Self // OR

I fixed some others errors

@phimage phimage closed this as completed Sep 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants