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

Protocols extending Sendable lead to concurrency warnings #450

Open
JavaAdam opened this issue Feb 3, 2023 · 0 comments
Open

Protocols extending Sendable lead to concurrency warnings #450

JavaAdam opened this issue Feb 3, 2023 · 0 comments

Comments

@JavaAdam
Copy link

JavaAdam commented Feb 3, 2023

When a protocol extends Sendable the generated mock is not complaint with the concurrency policy. And the following warnings occurs. I cannot guess if this is a bigger issue, because of the internal data structure?

Non-final class 'MockMyProtocol' cannot conform to 'Sendable'; use '@unchecked Sendable'

Stored property 'cuckoo_manager' of 'Sendable'-conforming class 'MockMyProtocol' has non-sendable type 'MockManager'

Stored property '__defaultImplStub' of 'Sendable'-conforming class 'MockMyProtocol' is mutable

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

No branches or pull requests

1 participant