solidity/test/libsolidity/syntaxTests/types/mapping/function_type_return_external.sol
2020-04-16 16:42:12 +02:00

7 lines
230 B
Solidity

contract C {
function f(function() external returns (mapping(uint=>uint) storage)) public pure {
}
}
// ----
// TypeError: (57-84): Data location must be "memory" for return parameter in function, but "storage" was given.