mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix ICE caused by an array of mappings
This commit is contained in:
@@ -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>).
|
||||
Reference in New Issue
Block a user