solidity/test/libsolidity/syntaxTests/structs/recursion/struct_definition_indirectly_recursive.sol

13 lines
240 B
Solidity
Raw Normal View History

2018-03-15 17:19:45 +00:00
contract Test {
struct MyStructName1 {
address addr;
uint256 count;
MyStructName2 x;
}
struct MyStructName2 {
MyStructName1 x;
}
}
// ----
// TypeError: (20-118): Recursive struct definition.