[Concurrency] Enable IsolatedDefaultValues under strict concurrency checking.

This commit is contained in:
Holly Borla
2024-01-10 20:53:42 -08:00
parent 5ac839b11d
commit e47a66cc33
5 changed files with 37 additions and 23 deletions

View File

@@ -337,7 +337,8 @@ static ConstructorDecl *createImplicitConstructor(NominalTypeDecl *decl,
ctor->setSynthesized();
ctor->setAccess(accessLevel);
if (ctx.LangOpts.hasFeature(Feature::IsolatedDefaultValues)) {
if (ctx.LangOpts.hasFeature(Feature::IsolatedDefaultValues) &&
!decl->isActor()) {
// If any of the type's actor-isolated properties:
// 1. Have non-Sendable type, or
// 2. Have an isolated initial value