Skip to content

[test] Simplify expression in a test #1124

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
Jul 25, 2017

Conversation

moiseev
Copy link
Contributor

@moiseev moiseev commented Jul 21, 2017

This expression became too complex due to the changes introduced in
swiftlang/swift#11044

@moiseev
Copy link
Contributor Author

moiseev commented Jul 21, 2017

@swift-ci Please test
Will it work?...

@alblue
Copy link
Contributor

alblue commented Jul 21, 2017 via email

@moiseev
Copy link
Contributor Author

moiseev commented Jul 21, 2017 via email

@moiseev
Copy link
Contributor Author

moiseev commented Jul 21, 2017

@alblue I am more than willing to reinstate the clarity, but to me expression without parens is the best it can be. Adding parens like this 1<<18 + 1<<17 + (1 as UInt32) only makes it worse, without changing the behavior.

@alblue
Copy link
Contributor

alblue commented Jul 21, 2017 via email

@moiseev
Copy link
Contributor Author

moiseev commented Jul 21, 2017

test__simplify_expression_in_a_test_by_moiseev pull_request__1124 _apple_swift-corelibs-foundation

This expression became too complex due to the changes introduced in
swiftlang/swift#11044
@moiseev
Copy link
Contributor Author

moiseev commented Jul 24, 2017

@alblue Turns out completely removing the UInt32 hint works as well, without affecting the clarity.

@parkera
Copy link
Contributor

parkera commented Jul 25, 2017

I guess this is ok; seems unfortunate to have to hack around compiler limitations like this but if we don't have a choice then we're ok to merge.

@moiseev moiseev merged commit 2b2931f into swiftlang:master Jul 25, 2017
@moiseev moiseev deleted the not-too-complex branch July 25, 2017 16:52
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