aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/structs/recursion/return_recursive_structs.sol
blob: c8f9185c146e68120a7ab186f4d07d1794117d31 (plain) (blame)
1
2
3
4
5
6
7
contract C {
    struct S { uint a; S[] sub; }
    function f() public pure returns (uint, S memory) {
    }
}
// ----
// TypeError: (91-99): Internal or recursive type is not allowed for public or external functions.