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

11 lines
235 B
Solidity
Raw Normal View History

2018-11-29 16:59:34 +00:00
pragma experimental ABIEncoderV2;
contract C {
function f(Data.S memory a) public {}
}
contract Data {
struct S { S[] x; }
2018-11-29 16:59:34 +00:00
}
// ----
// TypeError: (63-78): Recursive type not allowed for public or external contract functions.