solidity/test/libsolidity/syntaxTests/functionTypes/internal_function_as_external_parameter_in_library_external.sol

7 lines
180 B
Solidity
Raw Normal View History

2018-03-16 10:20:06 +00:00
library L {
function f(function(uint) internal returns (uint) x) public {
}
}
2018-03-16 10:33:05 +00:00
// ----
// TypeError: (27-67): Internal type is not allowed for public or external functions.