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

8 lines
310 B
Solidity
Raw Normal View History

contract C {
function f(function() external returns (mapping(uint=>uint) storage)) public pure {
}
}
// ----
2018-08-07 17:12:49 +00:00
// TypeError: (57-76): Data location must be "memory" for return parameter in function, but "storage" was given.
// TypeError: (57-76): Internal type cannot be used for external function type.