solidity/test/libsolidity/syntaxTests/types/mapping/memory_struct_recursive.sol

21 lines
282 B
Solidity
Raw Normal View History

2020-06-07 16:00:52 +00:00
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.