File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2338,8 +2338,15 @@ namespace {
2338
2338
// FIXME: We can collapse a much of this with the ActorSelf case.
2339
2339
bool continueToCheckingLocalIsolation = false ;
2340
2340
// Must reference distributed actor-isolated state on 'self'.
2341
+ //
2342
+ // FIXME: For now, be loose about access to "self" in actor
2343
+ // initializers/deinitializers. We'll want to tighten this up once
2344
+ // we decide exactly how the model should go.
2341
2345
auto isolatedActor = getIsolatedActor (base);
2342
- if (!isolatedActor) {
2346
+ if (!isolatedActor &&
2347
+ !(isolatedActor.isActorSelf () &&
2348
+ member->isInstanceMember () &&
2349
+ isActorInitOrDeInitContext (getDeclContext ()))) {
2343
2350
// invocation on not-'self', is only okey if this is a distributed func
2344
2351
2345
2352
if (auto func = dyn_cast<FuncDecl>(member)) {
You can’t perform that action at this time.
0 commit comments