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

7 lines
244 B
Solidity
Raw Normal View History

contract C {
function f(function() external returns (mapping(uint=>uint) storage)) public pure {
}
}
// ----
2020-05-14 17:02:45 +00:00
// TypeError: (57-84): Data location must be "memory" or "calldata" for return parameter in function, but "storage" was given.