mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Extract recursive struct tests.
This commit is contained in:
committed by
Alex Beregszaszi
parent
7753249f64
commit
c42caedec2
+12
@@ -0,0 +1,12 @@
|
||||
contract Test {
|
||||
struct MyStructName1 {
|
||||
address addr;
|
||||
uint256 count;
|
||||
MyStructName2 x;
|
||||
}
|
||||
struct MyStructName2 {
|
||||
MyStructName1 x;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: Recursive struct definition.
|
||||
Reference in New Issue
Block a user