mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8 lines
282 B
Solidity
8 lines
282 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 4103: (129-169): Internal type is not allowed for public or external functions.
|