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 {
23382338 // FIXME: We can collapse a much of this with the ActorSelf case.
23392339 bool continueToCheckingLocalIsolation = false ;
23402340 // 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.
23412345 auto isolatedActor = getIsolatedActor (base);
2342- if (!isolatedActor) {
2346+ if (!isolatedActor &&
2347+ !(isolatedActor.isActorSelf () &&
2348+ member->isInstanceMember () &&
2349+ isActorInitOrDeInitContext (getDeclContext ()))) {
23432350 // invocation on not-'self', is only okey if this is a distributed func
23442351
23452352 if (auto func = dyn_cast<FuncDecl>(member)) {
You can’t perform that action at this time.
0 commit comments