solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/207_no_mappings_in_memory_array.sol

8 lines
223 B
Solidity
Raw Normal View History

contract C {
function f() public {
mapping(uint=>uint)[] memory x;
}
}
// ----
2020-07-15 17:50:59 +00:00
// TypeError 4061: (47-77): Type mapping(uint256 => uint256)[] is only valid in storage because it contains a (nested) mapping.