mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
21 lines
282 B
Solidity
21 lines
282 B
Solidity
|
contract Test {
|
||
|
struct S {
|
||
|
T[] t;
|
||
|
}
|
||
|
|
||
|
struct T {
|
||
|
U[] u;
|
||
|
}
|
||
|
|
||
|
struct U {
|
||
|
S[] s;
|
||
|
mapping (uint => S) map;
|
||
|
}
|
||
|
|
||
|
function f() public {
|
||
|
S memory s;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError 4061: (143-153): Type struct Test.S is only valid in storage because it contains a (nested) mapping.
|