solidity/test/libsolidity/syntaxTests/memberLookup/memory_structs_with_mappings.sol
2020-01-08 16:12:06 +01:00

11 lines
238 B
Solidity

contract Test {
struct S { uint8 a; mapping(uint => uint) b; uint8 c; }
S s;
function f() public {
S memory x;
x.b[1];
}
}
// ----
// TypeError: (118-121): Member "b" is not available in "struct Test.S memory" outside of storage.