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

9 lines
292 B
Solidity

// It should not be possible to give internal functions
// as parameters to external functions.
contract C {
function f(function(uint) internal returns (uint) x) public {
}
}
// ----
// TypeError: (124-164): Internal or recursive type is not allowed for public or external functions.