Documentation.

This commit is contained in:
chriseth 2020-11-25 11:24:58 +01:00 committed by Leonardo Alt
parent c5d172c058
commit 5de66bf5e4
2 changed files with 7 additions and 1 deletions

View File

@ -24,8 +24,10 @@ Breaking Changes:
Language Features: Language Features:
* Super constructors can now be called using the member notation e.g. ``M.C(123)``. * Super constructors can now be called using the member notation e.g. ``M.C(123)``.
Bugfixes:
* Type Checker: Perform proper integer arithmetic when using constants in array length expressions.
AST Changes: AST Changes:
* New AST Node ``IdentifierPath`` replacing in many places the ``UserDefinedTypeName`` * New AST Node ``IdentifierPath`` replacing in many places the ``UserDefinedTypeName``

View File

@ -35,6 +35,10 @@ the compiler notifying you about it.
* If a byte array in storage is accessed whose length is encoded incorrectly, a panic is caused. * If a byte array in storage is accessed whose length is encoded incorrectly, a panic is caused.
A contract cannot get into this situation unless inline assembly is used to modify the raw representation of storage byte arrays. A contract cannot get into this situation unless inline assembly is used to modify the raw representation of storage byte arrays.
* If constants are used in array length expressions, previous versions of Solidity would use arbitrary precision
in all branches of the evaluation tree. Now, if constant variables are used as intermediate expressions,
their values will be properly rounded in the same way as when they are used in run-time expressions.
New Restrictions New Restrictions
================ ================