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

7 lines
350 B
Solidity
Raw Normal View History

2018-07-26 04:06:56 +00:00
contract c {
function f3(mapping(uint => uint) memory) view public {}
}
// ----
2020-06-07 16:00:52 +00:00
// TypeError 4103: (29-57): Types containing (nested) mappings can only be parameters or return variables of internal or library functions.
// TypeError 4061: (29-57): Type mapping(uint256 => uint256) is only valid in storage because it contains a (nested) mapping.