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

13 lines
245 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 2046: (20-118): Recursive struct definition.