solidity/test/libsolidity/syntaxTests/functionTypes/internal_function_returned_from_public_function.sol
2018-04-11 22:00:04 +02:00

8 lines
290 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: (129-169): Internal or recursive type is not allowed for public or external functions.