Enforces data location of local mappings to storage.

This commit is contained in:
Erik Kundt
2018-07-23 19:30:07 +02:00
parent b909df4573
commit c622a1e56c
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;