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

7 lines
234 B
Solidity

contract C {
function f() external pure returns (mapping(uint=>uint) storage m) {
}
}
// ----
// TypeError 6651: (53-82): Data location must be "memory" or "calldata" for return parameter in function, but "storage" was given.