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

8 lines
186 B
Solidity
Raw Normal View History

contract C {
function f() public {
mapping(uint=>uint)[] memory x;
}
}
// ----
// TypeError: (47-77): Type mapping(uint256 => uint256)[] memory is only valid in storage.