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

6 lines
207 B
Solidity
Raw Normal View History

2018-07-26 04:06:56 +00:00
contract c {
function f3(mapping(uint => uint) memory) view public {}
}
// ----
// TypeError: (29-57): Mapping types for parameters or return variables can only be used in internal or library functions.