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