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

7 lines
228 B
Solidity

contract C {
function f() public pure returns (mapping(uint=>uint)[] storage m) {
}
}
// ----
// TypeError: (51-82): Location has to be memory for publicly visible functions (remove the "storage" or "calldata" keyword).