aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/structs/recursion/return_recursive_structs3.sol
blob: 6728baec6594c452dbbdef7b1fdcf5b7e4037a5e (plain) (blame)
1
2
3
4
5
6
7
8
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.