solidity/test/libsolidity/syntaxTests/array/function_mapping.sol
2022-04-01 23:41:18 -05:00

8 lines
300 B
Solidity

pragma abicoder v2;
contract Test {
function f(mapping(uint => uint)[] memory x) public pure {}
}
// ----
// TypeError 4103: (66-98='mapping(uint => uint)[] memory x'): Types containing (nested) mappings can only be parameters or return variables of internal or library functions.