Skip to content

Commit 1669fb4

Browse files
committed
introducer
1 parent a1ae362 commit 1669fb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Sema/DerivedConformanceDistributedActor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ static ValueDecl *deriveDistributedActor_id(DerivedConformance &derived) {
7575
propertyType, propertyType,
7676
/*isStatic=*/false, /*isFinal=*/true);
7777

78+
propDecl->setIntroducer(VarDecl::Introducer::Let);
79+
7880
// mark as @_distributedActorIndependent, allowing access to it from everywhere
7981
propDecl->getAttrs().add(
8082
new (C) DistributedActorIndependentAttr(/*IsImplicit=*/true));
@@ -102,6 +104,8 @@ static ValueDecl *deriveDistributedActor_actorTransport(
102104
propertyType, propertyType,
103105
/*isStatic=*/false, /*isFinal=*/true);
104106

107+
propDecl->setIntroducer(VarDecl::Introducer::Let);
108+
105109
// mark as @_distributedActorIndependent, allowing access to it from everywhere
106110
propDecl->getAttrs().add(
107111
new (C) DistributedActorIndependentAttr(/*IsImplicit=*/true));

0 commit comments

Comments
 (0)