Merge pull request #9252 from ethereum/develop

Merge develop into breaking.
This commit is contained in:
chriseth
2020-06-23 18:28:24 +02:00
committed by GitHub
19 changed files with 161 additions and 90 deletions
+1 -6
View File
@@ -492,12 +492,7 @@ DeclarationAnnotation& Declaration::annotation() const
bool VariableDeclaration::isLValue() const
{
// Constant declared variables are Read-Only
if (isConstant())
return false;
// External function arguments of reference type are Read-Only
if (isExternalCallableParameter() && dynamic_cast<ReferenceType const*>(type()))
return false;
return true;
return !isConstant();
}
bool VariableDeclaration::isLocalVariable() const