solidity/test/libsolidity/syntaxTests/memberLookup/memory_structs_with_mappings.sol

10 lines
243 B
Solidity
Raw Normal View History

2018-04-18 18:40:08 +00:00
contract Test {
struct S { uint8 a; mapping(uint => uint) b; uint8 c; }
S s;
function f() public {
S memory x;
}
}
// ----
2020-06-07 16:00:52 +00:00
// TypeError 4061: (104-114): Type struct Test.S is only valid in storage because it contains a (nested) mapping.