Merge remote-tracking branch 'origin/master' into master-next

This commit is contained in:
swift-ci
2017-07-24 16:09:01 -07:00
5 changed files with 86 additions and 18 deletions

View File

@@ -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