Fix ICE caused by an array of mappings

This commit is contained in:
a3d4
2020-09-29 18:17:46 +02:00
parent 343c13f94c
commit 3c876fcb60
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>).