mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user