Merge pull request #38186 from DougGregor/actors-and-global-actors

Semantic tweaks to (global) actors to bring them in line with the accepted proposals
This commit is contained in:
Doug Gregor
2021-06-30 19:02:12 -07:00
committed by GitHub
24 changed files with 138 additions and 55 deletions

View File

@@ -7720,7 +7720,7 @@ static bool isNonFinalClass(Type type) {
type = dynamicSelf->getSelfType();
if (auto classDecl = type->getClassOrBoundGenericClass())
return !classDecl->isFinal();
return !classDecl->isSemanticallyFinal();
if (auto archetype = type->getAs<ArchetypeType>())
if (auto super = archetype->getSuperclass())