Skip to content

[embedded] Add a embedded Swift + typed throw test showcasing that we avoid existentials #68977

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 2 commits into from
Oct 8, 2023

Conversation

kubamracek
Copy link
Contributor

The actual compiler changes are taken from Doug's PR at https://github.com/apple/swift/pull/68976/commits (and I'll wait for that one to land first), I'm only adding the embedded testcase with this one.

@kubamracek
Copy link
Contributor Author

@swift-ci please test

@kubamracek kubamracek added the embedded Embedded Swift label Oct 5, 2023
@kubamracek kubamracek force-pushed the embedded-typed-throws branch from 7e73412 to 7e42771 Compare October 5, 2023 20:51
@kubamracek
Copy link
Contributor Author

@swift-ci please test

// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: VENDOR=apple
// REQUIRES: OS=macosx
Copy link
Contributor

Choose a reason for hiding this comment

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

I keep forgetting whether we still need REQUIRES: asserts when -enable-experimental-feature flag is used or not, could you please double-check?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Some features need asserts, some don't (it's controlled in the Features.def file on a per feature basis). The ones used here don't need asserts.

@kubamracek kubamracek force-pushed the embedded-typed-throws branch from 7e42771 to 2b90200 Compare October 8, 2023 05:15
@kubamracek
Copy link
Contributor Author

@swift-ci please test

@kubamracek kubamracek merged commit 51a3de8 into swiftlang:main Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
embedded Embedded Swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants