solidity/test/libsolidity/syntaxTests/structs/recursion/return_recursive_structs.sol
2018-04-03 16:27:28 +02:00

8 lines
202 B
Solidity

contract C {
struct S { uint a; S[] sub; }
function f() public pure returns (uint, S) {
}
}
// ----
// TypeError: Internal or recursive type is not allowed for public or external functions.