Merge pull request #4527 from ethereum/mappingEnforceStorage

Enforces explicit data location for mappings
This commit is contained in:
Alex Beregszaszi
2018-07-23 20:43:38 +01:00
committed by GitHub
11 changed files with 46 additions and 11 deletions
+1 -1
View File
@@ -1534,7 +1534,7 @@ BOOST_AUTO_TEST_CASE(struct_reference)
}
function set() public {
data.z = 2;
mapping(uint8 => s2) map = data.recursive;
mapping(uint8 => s2) storage map = data.recursive;
s2 storage inner = map[0];
inner.z = 3;
inner.recursive[0].z = inner.recursive[1].z + 1;