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

7 lines
227 B
Solidity

library L {
// Used to cause internal error
function f(function(uint) internal returns (uint)[] memory x) public { }
}
// ----
// TypeError 4103: (63-112): Internal type is not allowed for public or external functions.