solidity/test/libsolidity/syntaxTests/getter/recursive_struct.sol
2022-04-01 23:41:18 -05:00

9 lines
226 B
Solidity

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