blob: fa92d5597b8ee0953afc77581bd5b7829b85c941 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
// 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.
|