Skip to content

Check default arguments even if a function has no body #18864

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

Conversation

jrose-apple
Copy link
Contributor

This is needed for textual interfaces, but the behavior doesn't have to be specific to that, since functions without bodies don't come up in other situations.

@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - a50553a70cbb2bfc16f2843fece96a06b9489ce0

@jrose-apple
Copy link
Contributor Author

Oops. I saw that this test failed, but it's relying on old behavior of SourceLoader and isn't worth preserving.

@jrose-apple jrose-apple force-pushed the never-default-on-your-defaults branch from a50553a to 1a88fbf Compare August 21, 2018 02:36
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

This is needed for textual interfaces, but the behavior doesn't
have to be specific to that, since functions without bodies don't
come up in other situations.
@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - a50553a70cbb2bfc16f2843fece96a06b9489ce0

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - a50553a70cbb2bfc16f2843fece96a06b9489ce0

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - a50553a70cbb2bfc16f2843fece96a06b9489ce0

@jrose-apple
Copy link
Contributor Author

22:46:46 Failing Tests (3):
22:46:46 lldb-Suite :: lang/swift/conditional_breakpoints/TestSwiftConditionalBreakpoint.py
22:46:46 lldb-Suite :: lang/swift/stepping/TestSwiftStepping.py
22:46:46 lldb-Suite :: lang/swift/struct_init_display/TestSwiftStructInit.py

These three again. @dcci, maybe it's worth re-excluding them for now?

@jrose-apple
Copy link
Contributor Author

@swift-ci Please test Linux

@dcci
Copy link
Member

dcci commented Aug 21, 2018

@jrose-apple yes, I think we should exclude them again (cc: @fredriss/ @vedantk)

@dcci
Copy link
Member

dcci commented Aug 21, 2018

In fact, I thought they're still excluded (they're still marked as swift-test, but not swift-pr). I think this is because we now run the full suite (sorry I don't have more details, this was presumably deployed last week when I was out).

@vedantk
Copy link
Contributor

vedantk commented Aug 21, 2018

The swiftpr test whitelist was disabled recently. I filed a bug tracking a fix to the underlying issue with these tests. I'll mark these tests as being fully skipped for now.

@jrose-apple jrose-apple merged commit 71a2adb into swiftlang:master Aug 21, 2018
@jrose-apple jrose-apple deleted the never-default-on-your-defaults branch August 21, 2018 17:41
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.

6 participants