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

9 lines
188 B
Solidity
Raw Normal View History

2018-11-28 11:18:32 +00:00
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.