mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Refactor isConstant to add "immutable".
This commit is contained in:
committed by
Daniel Kirchner
parent
f10c6500b2
commit
1488a1ceb8
@@ -390,7 +390,7 @@ DeclarationAnnotation& Declaration::annotation() const
|
||||
bool VariableDeclaration::isLValue() const
|
||||
{
|
||||
// Constant declared variables are Read-Only
|
||||
if (m_isConstant)
|
||||
if (isConstant())
|
||||
return false;
|
||||
// External function arguments of reference type are Read-Only
|
||||
if (isExternalCallableParameter() && dynamic_cast<ReferenceType const*>(type()))
|
||||
|
||||
Reference in New Issue
Block a user