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

11 lines
255 B
Solidity
Raw Normal View History

contract Test {
struct MyStructName {
address addr;
MyStructName[] x;
}
function f(MyStructName memory s) public {}
}
// ----
// TypeError 4103: (112-133): Recursive type not allowed for public or external contract functions.