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

9 lines
156 B
Solidity
Raw Normal View History

2018-03-15 17:19:45 +00:00
contract Test {
struct MyStructName {
address addr;
MyStructName x;
}
}
// ----
// TypeError: (20-93): Recursive struct definition.