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

7 lines
277 B
Solidity
Raw Normal View History

2018-07-26 04:06:56 +00:00
contract c {
function f4(mapping(uint => uint) storage) pure internal {}
function f5(mapping(uint => uint) memory) pure internal {}
2018-07-26 04:06:56 +00:00
}
// ----
2020-06-07 16:00:52 +00:00
// TypeError 4061: (93-121): Type mapping(uint256 => uint256) is only valid in storage because it contains a (nested) mapping.