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

9 lines
161 B
Solidity

contract Test {
struct MyStructName {
address addr;
MyStructName x;
}
}
// ----
// TypeError 2046: (20-93): Recursive struct definition.