mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
341 B
Solidity
13 lines
341 B
Solidity
contract Test {
|
|
struct S1 { uint8 a; mapping(uint => uint)[] b1; uint8 c; }
|
|
struct S2 { uint8 a; S1[] b2; uint8 c; }
|
|
S2 s2;
|
|
function f() public {
|
|
S2 memory x = s2;
|
|
x.b2.length;
|
|
x.b2[1].b1[2][3];
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (208-218): Member "b1" is not available in struct Test.S1 memory outside of storage.
|