mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #21783 from xedin/rdar-30933988
[AST] `Decl::is*AccessibleFrom` methods should respect access control…
This commit is contained in:
@@ -715,8 +715,7 @@ static bool doesStorageProduceLValue(TypeChecker &TC,
|
||||
if (!storage->isSettable(useDC, base))
|
||||
return false;
|
||||
|
||||
if (TC.Context.LangOpts.EnableAccessControl &&
|
||||
!storage->isSetterAccessibleFrom(useDC))
|
||||
if (!storage->isSetterAccessibleFrom(useDC))
|
||||
return false;
|
||||
|
||||
// If there is no base, or if the base isn't being used, it is settable.
|
||||
|
||||
Reference in New Issue
Block a user