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

8 lines
272 B
Solidity
Raw Normal View History

2020-06-07 16:00:52 +00:00
pragma experimental ABIEncoderV2;
library L {
struct S { mapping(uint => uint) m; }
function f(S memory a) external pure returns (S memory) {}
}
// ----
// TypeError 4061: (103-113): Type struct L.S is only valid in storage because it contains a (nested) mapping.