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

8 lines
185 B
Solidity

contract C {
function f() public {
function(uint) private returns (uint) x;
}
}
// ----
// TypeError: (47-86): Invalid visibility, can only be "external" or "internal".