Skip to content

Conversation

@jmschonfeld
Copy link
Contributor

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



@_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