Add trivial accessors to static properties (as well as instance properties).

This is a better fix for rdar://problem/19941580: by providing trivial
accessors for all static properties, we have them there for any other
type checking that might need them, including the Objective-C selector
checking from the radar.

Swift SVN r25730
This commit is contained in:
Doug Gregor
2015-03-04 00:30:46 +00:00
parent d4a743c357
commit 2edae8c57d
4 changed files with 19 additions and 7 deletions

View File

@@ -1813,7 +1813,7 @@ void swift::maybeAddMaterializeForSet(AbstractStorageDecl *storage,
}
void swift::maybeAddAccessorsToVariable(VarDecl *var, TypeChecker &TC) {
if (var->getGetter() || var->isStatic() || var->isBeingTypeChecked())
if (var->getGetter() || var->isBeingTypeChecked())
return;
// Lazy variables need accessors.