mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Generate an implicit 'materializeForSet' accessor
along with getters and setters. Just generate it for now. Swift SVN r22011
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user