Skip to content

Commit 25b69d1

Browse files
committed
make sure all actor kinds, including distributed, are "semantically final"
1 parent 158953c commit 25b69d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AST/Decl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3075,13 +3075,13 @@ void ValueDecl::setIsObjC(bool value) {
30753075
bool ValueDecl::isSemanticallyFinal() const {
30763076
// Actor types are semantically final.
30773077
if (auto classDecl = dyn_cast<ClassDecl>(this)) {
3078-
if (classDecl->isActor())
3078+
if (classDecl->isAnyActor())
30793079
return true;
30803080
}
30813081

30823082
// As are members of actor types.
30833083
if (auto classDecl = getDeclContext()->getSelfClassDecl()) {
3084-
if (classDecl->isActor())
3084+
if (classDecl->isAnyActor())
30853085
return true;
30863086
}
30873087

0 commit comments

Comments
 (0)