solidity/test/libsolidity/syntaxTests/array/function_mapping_library.sol
2020-06-30 16:53:41 +05:30

7 lines
294 B
Solidity

pragma experimental ABIEncoderV2;
library L {
function f(mapping(uint => uint)[2] memory a) external pure returns (mapping(uint => uint)[2] memory) {}
}
// ----
// TypeError 4061: (61-94): Type mapping(uint256 => uint256)[2] is only valid in storage because it contains a (nested) mapping.