mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Distributed] fix access level of synthesized default dist init
This commit is contained in:
@@ -321,6 +321,9 @@ static ConstructorDecl *createImplicitConstructor(NominalTypeDecl *decl,
|
||||
"Only 'distributed actor' type can gain implicit distributed actor init");
|
||||
|
||||
if (swift::ensureDistributedModuleLoaded(decl)) {
|
||||
// copy access level of distributed actor init from the nominal decl
|
||||
accessLevel = decl->getEffectiveAccess();
|
||||
|
||||
auto transportDecl = ctx.getActorTransportDecl();
|
||||
|
||||
// Create the parameter.
|
||||
|
||||
Reference in New Issue
Block a user