diff options
author | Federico Bond <federicobond@gmail.com> | 2016-12-13 10:59:53 +0800 |
---|---|---|
committer | Federico Bond <federicobond@gmail.com> | 2016-12-13 11:32:37 +0800 |
commit | de720e643d8c54c613356bfcdcb6c49984460a17 (patch) | |
tree | 68cf22d6ab999f316ff3ec967029015b3aae6df5 /libsolidity/ast/ASTAnnotations.h | |
parent | 1c3605362d6018f5ab72cc84c7511fb49c15d126 (diff) | |
download | dexon-solidity-de720e643d8c54c613356bfcdcb6c49984460a17.tar dexon-solidity-de720e643d8c54c613356bfcdcb6c49984460a17.tar.gz dexon-solidity-de720e643d8c54c613356bfcdcb6c49984460a17.tar.bz2 dexon-solidity-de720e643d8c54c613356bfcdcb6c49984460a17.tar.lz dexon-solidity-de720e643d8c54c613356bfcdcb6c49984460a17.tar.xz dexon-solidity-de720e643d8c54c613356bfcdcb6c49984460a17.tar.zst dexon-solidity-de720e643d8c54c613356bfcdcb6c49984460a17.zip |
Improve error message when trying to modify constant variables
Diffstat (limited to 'libsolidity/ast/ASTAnnotations.h')
-rw-r--r-- | libsolidity/ast/ASTAnnotations.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/ast/ASTAnnotations.h b/libsolidity/ast/ASTAnnotations.h index 768e56db..9c4c3ae8 100644 --- a/libsolidity/ast/ASTAnnotations.h +++ b/libsolidity/ast/ASTAnnotations.h @@ -154,6 +154,8 @@ struct ExpressionAnnotation: ASTAnnotation { /// Inferred type of the expression. TypePointer type; + /// Whether the expression is a constant variable + bool isConstant = false; /// Whether it is an LValue (i.e. something that can be assigned to). bool isLValue = false; /// Whether the expression is used in a context where the LValue is actually required. |