Skip to content

Conversation

@jmschonfeld
Copy link
Contributor

Clients of the existing SCL-F expect to be able to cast file attribute values to any numeric type via NSNumber implicit bridging. This works in Foundation.framework today and this PR enables this functionality when SCL-F is imported on non-Darwin platforms by dynamically checking to see if we can initialize an NSNumber (falling back to the existing concrete numeric type when Foundation is not loaded.

@jmschonfeld
Copy link
Contributor Author

@swift-ci please test

@jmschonfeld
Copy link
Contributor Author

The NSNumber initializer is added to SCL-F in swiftlang/swift-corelibs-foundation#4966

@jmschonfeld jmschonfeld merged commit 3297fb3 into swiftlang:main May 29, 2024
@jmschonfeld jmschonfeld deleted the fm-nsnumber-upcall branch May 29, 2024 21:06
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