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

Doesn't compile with Swift 3.1 #13

Closed
Jeehut opened this issue Mar 28, 2017 · 4 comments
Closed

Doesn't compile with Swift 3.1 #13

Jeehut opened this issue Mar 28, 2017 · 4 comments

Comments

@Jeehut
Copy link

Jeehut commented Mar 28, 2017

Using the current version (0.1) I get the following error when trying to build this project with Xcode 8.3 and Swift 3.1:

UnitAreaTests.swift:17:27: Binary operator '/' cannot be applied to operands of type 'Measurement<UnitArea>' and 'Measurement<UnitLength>'

I also wonder why the test classes build when I run the framework with Cmd+B ...

@ole
Copy link
Owner

ole commented Mar 28, 2017

Thanks for reporting this, I'll look into it.

I also wonder why the test classes build when I run the framework with Cmd+B

That's intentional. I wanted to notice as soon as possible when tests fail to compile (e.g. when changing the API). I found this very useful during development.

@schmichri
Copy link

+1

ole added a commit that referenced this issue Mar 28, 2017
@ole
Copy link
Owner

ole commented Mar 28, 2017

I pushed a fix (#16) to master. Will make a new release soon.

@ole
Copy link
Owner

ole commented Mar 28, 2017

I just published v0.2 with the fix.

@ole ole closed this as completed Mar 28, 2017
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

3 participants