solidity/test/libsolidity/syntaxTests/types/mapping/mapping_array_return_public.sol
2020-05-26 10:51:13 +02:00

7 lines
229 B
Solidity

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