aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/getter/recursive_struct.sol
blob: d81cac60e57d8560504c71351477f9a352b56890 (plain) (blame)
1
2
3
4
5
6
7
8
contract C {
    struct Y {
        Y[] x;
    }
    mapping(uint256 => Y) public m;
}
// ----
// TypeError: (53-83): Internal or recursive type is not allowed for public state variables.