aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/functionTypes/internal_function_returned_from_public_function.sol
blob: 41fcd0a44472f91107c04e993ff91371f5784906 (plain) (blame)
1
2
3
4
5
6
7
// 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.