Skip to content

[SR-1901] Use final to prevent linker errors #173

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

Merged
merged 1 commit into from
Sep 22, 2016

Conversation

modocache
Copy link
Contributor

@modocache modocache commented Sep 21, 2016

In the discussion on SR-1901, one potential workaround was mentioned: mark internal variables as final. This works for attributes that are not "open get, internal set" -- let's try it out.

In the discussion on SR-1901, one potential workaround was mentioned:
mark internal variables as final. This works for attributes that are
not "public get, private set" -- let's try it out.
@modocache
Copy link
Contributor Author

@swift-ci please test

@modocache
Copy link
Contributor Author

@swift-ci please test Linux

@modocache
Copy link
Contributor Author

Wow, it worked! @briancroom, @mike-ferris-apple how about we merge this to reduce the amount of "overexposed" API in XCTest, at least until SR-1901 is resolved?

@mike-ferris
Copy link

Definitely good to not have to mark stuff public that is not. I'd say merge it.

@briancroom
Copy link
Contributor

Very nice, I wish we had been aware of this workaround sooner! Thanks for putting this out there, @modocache.

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

Successfully merging this pull request may close these issues.

3 participants