mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
315 B
Solidity
16 lines
315 B
Solidity
|
contract Test {
|
||
|
struct S {
|
||
|
uint8 a;
|
||
|
mapping(uint256 => uint256) b;
|
||
|
uint8 c;
|
||
|
}
|
||
|
S s;
|
||
|
|
||
|
function f() public returns (uint256) {
|
||
|
S memory x;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// ----
|
||
|
// TypeError 4061: (172-182): Type struct Test.S is only valid in storage because it contains a (nested) mapping.
|