mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
292 B
Solidity
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.
|