solidity/test/libsolidity/syntaxTests/structs/recursion/recursive_struct_with_internal_function_as_library_function_parameter.sol

12 lines
279 B
Solidity
Raw Normal View History

library Test {
struct MyStructName {
address addr;
MyStructName[] x;
function() internal y;
}
function f(MyStructName storage s) public {}
}
// ----
// TypeError 4103: (142-164): Internal type is not allowed for public or external functions.