Skip to content
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

Use per-type imports everywhere #264

Merged
merged 1 commit into from
Sep 12, 2023
Merged

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