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

9 lines
232 B
Solidity
Raw Normal View History

2018-03-15 17:19:45 +00:00
contract C {
struct S { uint a; S[][][] sub; }
struct T { S s; }
function f() public pure returns (uint x, T t) {
}
}
// ----
// TypeError: Internal or recursive type is not allowed for public or external functions.