Replies: 1 comment 5 replies
-
|
@seanmrich I think a pull request requiring In the future we would probably rethink |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Building
swift-genwith swift 6 raises diagnostics around the static declarations. For example:The problem of course is that
Genisn'tSendable. I was going to put together a pull request to add support, but it isn't clear what the right direction would be here.Gen._runwould need to be aSendableclosure, but it seems too high a requirement to require this for all users of the type. I'm not aware of a way to defineGento beSendableonly when its closure isSendable. Without that, perhaps these static declarations need to be computed properties (at least when in swift 6 language mode)?Beta Was this translation helpful? Give feedback.
All reactions