Merge pull request #4431 from ethereum/tupleDeclaration

Disallow multi variable declarations with mismatching number of values.
This commit is contained in:
chriseth
2018-07-13 01:23:28 +02:00
committed by GitHub
30 changed files with 205 additions and 203 deletions
+2 -2
View File
@@ -297,9 +297,9 @@ These can then either be assigned to newly declared variables or to pre-existing
}
.. note::
Prior to version 0.4.24 it was possible to assign to tuples of smaller size, either
Prior to version 0.5.0 it was possible to assign to tuples of smaller size, either
filling up on the left or on the right side (which ever was empty). This is
now deprecated, both sides have to have the same number of components.
now disallowed, so both sides have to have the same number of components.
Complications for Arrays and Structs
------------------------------------