solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/264_mapping_in_memory_array.sol

8 lines
236 B
Solidity
Raw Normal View History

contract C {
function f(uint size) public {
mapping(uint => uint) storage x = new mapping(uint => uint)[](4);
}
}
// ----
2020-06-07 16:00:52 +00:00
// TypeError 1164: (94-117): Array containing a (nested) mapping cannot be constructed in memory.