solidity/test/libsolidity/syntaxTests/structs/recursion/struct_definition_indirectly_recursive.sol
2018-04-10 14:08:22 +02:00

13 lines
240 B
Solidity

contract Test {
struct MyStructName1 {
address addr;
uint256 count;
MyStructName2 x;
}
struct MyStructName2 {
MyStructName1 x;
}
}
// ----
// TypeError: (20-118): Recursive struct definition.