mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -3883,7 +3883,7 @@ bool VarDecl::isSettable(const DeclContext *UseDC,
|
||||
const DeclRefExpr *base) const {
|
||||
// If this is a 'var' decl, then we're settable if we have storage or a
|
||||
// setter.
|
||||
if (!isLet())
|
||||
if (!isLet() && !isShared())
|
||||
return ::isSettable(this);
|
||||
|
||||
// If the decl has a value bound to it but has no PBD, then it is
|
||||
|
||||
Reference in New Issue
Block a user