Skip to content

Conversation

@czechboy0
Copy link
Contributor

Motivation

The PR #184 broke the build when Foundation.Date was used in specific locations on client/server.

Modifications

Fixed the bug, but also made things even more consistent by using per-type imports on all platforms.

Result

All the necessary Foundation imports are now present, plus code got simplified a bit.

Test Plan

Now that all platforms emit the same imports (except for the @preconcurrency attribute), it's easier to catch similar issues even during local dev. Verified on a sample proj this now works correctly.

Updated reference tests.

@czechboy0 czechboy0 merged commit 7364ff4 into apple:main Sep 12, 2023
@czechboy0 czechboy0 deleted the hd-per-type-imports branch September 12, 2023 12:24
@czechboy0 czechboy0 added the semver/none No version bump required. label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants