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

7 lines
230 B
Solidity

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