solidity/test/libsolidity/syntaxTests/functionTypes/internal_function_returned_from_public_function.sol

8 lines
282 B
Solidity

// It should not be possible to return internal functions from external functions.
contract C {
function f() public returns (function(uint) internal returns (uint) x) {
}
}
// ----
// TypeError 4103: (129-169): Internal type is not allowed for public or external functions.