Skip to content

Commit f55ca73

Browse files
committed
make sure all actor kinds, including distributed, are "semantically final"
1 parent cffe8a0 commit f55ca73

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
@@ -3065,13 +3065,13 @@ void ValueDecl::setIsObjC(bool value) {
30653065
bool ValueDecl::isSemanticallyFinal() const {
30663066
// Actor types are semantically final.
30673067
if (auto classDecl = dyn_cast<ClassDecl>(this)) {
3068-
if (classDecl->isActor())
3068+
if (classDecl->isAnyActor())
30693069
return true;
30703070
}
30713071

30723072
// As are members of actor types.
30733073
if (auto classDecl = getDeclContext()->getSelfClassDecl()) {
3074-
if (classDecl->isActor())
3074+
if (classDecl->isAnyActor())
30753075
return true;
30763076
}
30773077

0 commit comments

Comments
 (0)