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

7 lines
197 B
Solidity
Raw Normal View History

contract C {
function f(function() external returns (mapping(uint=>uint) storage)) public pure {
}
}
// ----
// TypeError: (57-76): Internal type cannot be used for external function type.