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

16 lines
315 B
Solidity
Raw Normal View History

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