Merge pull request #9702 from a3d4/fix-7410-arrays-of-mappings

Fix ICE caused by an array of mappings
This commit is contained in:
chriseth
2020-09-30 20:24:09 +02:00
committed by GitHub
4 changed files with 32 additions and 1 deletions
@@ -0,0 +1,7 @@
contract C {
mapping(uint=>uint)[] array;
mapping(uint=>uint) map;
function f() public {
array.pop();
}
}
@@ -0,0 +1,10 @@
contract C {
mapping(uint=>uint)[] array;
mapping(uint=>uint) map;
function f() public {
array.push();
array.push(map);
}
}
// ----
// TypeError 8871: (131-141): Storage arrays with nested mappings do not support .push(<arg>).