Merge pull request #28372 from slavapestov/typecheck-decl-primary

Kill ClosuresWithUncomputedCaptures and split off TypeCheckDeclPrimary.cpp from TypeCheckDecl.cpp
This commit is contained in:
Slava Pestov
2019-11-20 14:29:31 -05:00
committed by GitHub
20 changed files with 2549 additions and 2509 deletions

View File

@@ -6166,7 +6166,7 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyMemberConstraint(
auto innerTV = createTypeVariable(locator,
TVO_CanBindToLValue |
TVO_CanBindToNoEscape);
Type optTy = getTypeChecker().getOptionalType(SourceLoc(), innerTV);
Type optTy = TypeChecker::getOptionalType(SourceLoc(), innerTV);
SmallVector<Constraint *, 2> optionalities;
auto nonoptionalResult = Constraint::createFixed(
*this, ConstraintKind::Bind,