Skip to content

SE-0036 (1/3): Update existing tests for the upcoming implementation #2841

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
Jun 2, 2016

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 2, 2016

What's in this pull request?

This is Part 1/3 implementing SE-0036:

This updates the existing tests to comply with SE-0036 and is fully backwards compatible


Before merging this pull request to apple/swift repository:

  • Test pull request on Swift continuous integration.

Triggering Swift CI

The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:

Smoke Testing

Platform Comment
All supported platforms @swift-ci Please smoke test
All supported platforms @swift-ci Please smoke test and merge
OS X platform @swift-ci Please smoke test OS X platform
Linux platform @swift-ci Please smoke test Linux platform

Validation Testing

Platform Comment
All supported platforms @swift-ci Please test
All supported platforms @swift-ci Please test and merge
OS X platform @swift-ci Please test OS X platform
OS X platform @swift-ci Please benchmark
Linux platform @swift-ci Please test Linux platform

Lint Testing

Language Comment
Python @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

if A == B { }
return A.hashValue
return Generic.A.hashValue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need static? I'd prefer to stick to the original code as close as possible.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was based on the comment by @jrose-apple on a previous PR: #2224 (comment)

But I can change it to be non-static if you think that’s better

Copy link
Contributor

@jrose-apple jrose-apple Jun 2, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. This test is supposed to be testing synthesis of == without any member lookup being done, because that goes through a different path in the compiler. (Feel free to add that as a comment!)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment added

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jrose-apple!

@gribozavr
Copy link
Contributor

@swift-ci Please test

@ahoppen ahoppen changed the title Update existing tests for the upcoming implementation of SE-0036 SE-0036 (1/3): Update existing tests for the upcoming implementation Jun 2, 2016
@ahoppen ahoppen force-pushed the SR-1236-tests-update branch from 0a8ff0d to 2108a23 Compare June 2, 2016 15:51
@gribozavr
Copy link
Contributor

@swift-ci Please test and merge

@swift-ci swift-ci merged commit 7c98b49 into swiftlang:master Jun 2, 2016
@slavapestov slavapestov self-assigned this Jul 7, 2016
@ahoppen ahoppen deleted the SR-1236-tests-update branch July 9, 2016 11:11
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.

5 participants