Generate an implicit 'materializeForSet' accessor

along with getters and setters.

Just generate it for now.

Swift SVN r22011
This commit is contained in:
John McCall
2014-09-17 08:08:03 +00:00
parent c734630dc3
commit 75050f8166
36 changed files with 933 additions and 212 deletions

View File

@@ -314,7 +314,8 @@ static void diagRecursivePropertyAccess(TypeChecker &TC, const Expr *E,
if (auto *DRE = dyn_cast<DeclRefExpr>(E)) {
// Handle local and top-level computed variables.
if (DRE->getDecl() == Var &&
!DRE->isDirectPropertyAccess()) {
!DRE->isDirectPropertyAccess() &&
Accessor->getAccessorKind() != AccessorKind::IsMaterializeForSet) {
bool shouldDiagnose = true;
if (auto *ParentExpr = Parent.getAsExpr()) {
if (isa<DotSyntaxBaseIgnoredExpr>(ParentExpr))