Module printing and serialization support for @unchecked Sendable

This commit is contained in:
Doug Gregor
2021-07-11 12:29:21 -07:00
parent 29f5d7a64a
commit 06bbc70b3e
31 changed files with 270 additions and 253 deletions

View File

@@ -4202,8 +4202,9 @@ static ConstraintResult visitInherited(
ASTContext &ctx = typeDecl ? typeDecl->getASTContext()
: extDecl->getASTContext();
auto &evaluator = ctx.evaluator;
ArrayRef<TypeLoc> inheritedTypes = typeDecl ? typeDecl->getInherited()
: extDecl->getInherited();
ArrayRef<InheritedEntry> inheritedTypes =
typeDecl ? typeDecl->getInherited()
: extDecl->getInherited();
for (unsigned index : indices(inheritedTypes)) {
Type inheritedType
= evaluateOrDefault(evaluator,