Skip to content

Add upcall for FoundationEssentials to initialize NSNumbers #4966

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
May 29, 2024

Conversation

jmschonfeld
Copy link
Contributor

This allows the changes in swiftlang/swift-foundation#641 to initialize NSNumbers in FoundationEssentials

@@ -9,6 +9,7 @@


@_implementationOnly import _CoreFoundation
@_spi(SwiftCorelibsFoundation) @_exported import FoundationEssentials
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it @_exported so that _typeByName("Foundation._FoundationNSNumberInitializer") is visible to FoundationEssentials?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The @_exported attribute is the attribute that re-exports all of the symbols from FoundationEssentials. All of our imports of FoundationEssentials and FoundationInternationalization are @_exported so that Foundation.URL == FoundationEssentials.URL because Foundation is re-exporting FoundationEssentials and everything within it, so it's not specific to this change it's just something we have to add to every import of those modules

@jmschonfeld jmschonfeld merged commit 08e829c into swiftlang:package May 29, 2024
@jmschonfeld jmschonfeld deleted the fm-nsnumber-upcall branch May 29, 2024 21:08
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