solidity/test/libsolidity/syntaxTests/types/mapping/mapping_array_data_location_function_param_external.sol

7 lines
254 B
Solidity
Raw Normal View History

2018-07-26 04:06:56 +00:00
contract c {
function f1(mapping(uint => uint)[] calldata) pure external {}
}
// ----
// TypeError: (29-52): Type is required to live outside storage.
// TypeError: (29-52): Internal or recursive type is not allowed for public or external functions.