mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
a VarDecl or Expr. This generalization exposed a bug where distributed actor isolation checking was skipped in some cases, including for the isolated call in `whenLocal`. The `whenLocal` implementation violated distributed actor isolation because despite the `__isLocal` dynamic check, the `self` value passed to the `body` function argument is still not statically local. To workaround this, I applied the `_local` modifier explicitly to `self` before the call, which also necessitated allowing `_local` to be written explicitly in the Distributed library.
19 KiB
19 KiB