solidity/test/libsolidity/syntaxTests/types/mapping/memory_struct_recursive.sol
2020-06-30 16:53:41 +05:30

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.