Skip to content

jextract: fix conditional imports#620

Open
madsodgaard wants to merge 1 commit intoswiftlang:mainfrom
madsodgaard:conditional-import
Open

jextract: fix conditional imports#620
madsodgaard wants to merge 1 commit intoswiftlang:mainfrom
madsodgaard:conditional-import

Conversation

@madsodgaard
Copy link
Contributor

Fixes a bug where the generator would generate:

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
#if canImport(Foundation)
import Foundation
#else
import FoundationEssentials
#endif

@madsodgaard madsodgaard requested a review from ktoso as a code owner March 14, 2026 14:09
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.

1 participant