solidity/test/libsolidity/syntaxTests/getter/recursive_struct.sol

9 lines
193 B
Solidity

contract C {
struct Y {
Y[] x;
}
mapping(uint256 => Y) public m;
}
// ----
// TypeError 6744: (53-83): Internal or recursive type is not allowed for public state variables.