Skip to content

[5.9] [Runtime] Add a function to check type creation #68376

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
Sep 8, 2023

Conversation

Azoy
Copy link
Contributor

@Azoy Azoy commented Sep 7, 2023

Cherry-pick of #68359

  • Explanation:
    In some situations it is needed to dynamically instantiate new variations of a generic type given a flat list of the desired generic arguments. With the introduction of parameter packs, performing this operation is nigh impossible without the runtime's help. Add a new SPI that does the right thing for us and checks that the given generic arguments are suitable for the passed type and instantiate that variation for us.

  • Scope:
    Currently none as this is a new function that isn't being exercised anywhere.

  • Main Branch PR: [Runtime] Add a function to check type creation #68359

  • Risk: Low

  • Reviewed By: @mikeash

  • Testing: Added test-cases to the suite.

Resolves: rdar://112163811

[Runtime] Add a function to check type creation
@Azoy Azoy requested a review from a team as a code owner September 7, 2023 16:15
@Azoy
Copy link
Contributor Author

Azoy commented Sep 7, 2023

@swift-ci please test

@Azoy
Copy link
Contributor Author

Azoy commented Sep 7, 2023

@swift-ci please test macOS

@Azoy Azoy merged commit 03d3113 into swiftlang:release/5.9 Sep 8, 2023
@Azoy Azoy deleted the packs-packs-packs-59 branch September 8, 2023 00:04
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.

2 participants