Skip to content

Adding Swift base type to Sendable inherited type definition#114

Merged
Kolos65 merged 1 commit intoKolos65:mainfrom
neurovalens:main
May 6, 2025
Merged

Adding Swift base type to Sendable inherited type definition#114
Kolos65 merged 1 commit intoKolos65:mainfrom
neurovalens:main

Conversation

@daniel-murphy-neurovalens
Copy link
Copy Markdown
Contributor

This solves a pretty niche issue I ran into when using Mockable in conjunction with Bluejay, a bluetooth low energy library.

Bluejay has its own Sendable type which takes precidence over Swift.Sendable when it is imported within the file you are trying to mock within.

The fix for this is to add a base type to the Sendable inherited type definition, I don't think this will have any adverse side effects for other users where the clash is not an issue but it will allow for cases where Sendable is defined elsewhere.

@daniel-murphy-neurovalens daniel-murphy-neurovalens force-pushed the main branch 2 times, most recently from 127e915 to 95fa567 Compare May 6, 2025 13:50
@daniel-murphy-neurovalens
Copy link
Copy Markdown
Contributor Author

@Kolos65 that should be the commit message lint fixed, not too sure why the Linux builds are failing, seems to be an issue on your PR too

@Kolos65
Copy link
Copy Markdown
Owner

Kolos65 commented May 6, 2025

Yeah, thats a swift toolchain issue I reported in pointfreeco/swift-issue-reporting#150

Don't worry about that, I will remove that version from the test matrix.

@Kolos65
Copy link
Copy Markdown
Owner

Kolos65 commented May 6, 2025

fix: add Swift base type to Sendable inherited type definition will be a valid commit message, sorry for the strict validation.

@daniel-murphy-neurovalens
Copy link
Copy Markdown
Contributor Author

Third times the charm 😅

@Kolos65 Kolos65 merged commit 564a089 into Kolos65:main May 6, 2025
3 of 5 checks passed
@Kolos65
Copy link
Copy Markdown
Owner

Kolos65 commented May 6, 2025

Thanks @daniel-murphy-neurovalens 🚀

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.

2 participants