Skip to content

[5.0] Ban variadic enum cases #21420

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

rjmccall
Copy link
Contributor

@rjmccall rjmccall commented Dec 18, 2018

These should be supported in the long term, but in the short term, crashing is not accepable behavior.

rdar://46821582

5.0 version of #21419. TODO: CCC

These should be supported in the long term, but in the short term,
crashing is not accepable behavior.

rdar://46821582
@rjmccall rjmccall requested a review from a team as a code owner December 18, 2018 22:30
@rjmccall
Copy link
Contributor Author

@swift-ci Please test

@AnnaZaks
Copy link
Contributor

@swift-ci please test source compatibility

@jrose-apple
Copy link
Contributor

Looks like the failures are all unrelated to this change.

@slavapestov
Copy link
Contributor

@CodaFi's work on enum default arguments involves switching payload emission over to use an ArgumentSource IIRC; so it might be possible to handle varargs there as well.

@AnnaZaks AnnaZaks merged commit 1195be5 into swiftlang:swift-5.0-branch Dec 19, 2018
@rjmccall rjmccall deleted the ban-variadic-cases-5.0 branch December 19, 2018 21:05
@rjmccall
Copy link
Contributor Author

Yeah, I saw that. And yes, done properly that's the right way to get this to work.

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.

4 participants