solidity/test/libsolidity/syntaxTests/types/mapping/library_nested_mapping.sol
2020-06-30 16:53:41 +05:30

8 lines
272 B
Solidity

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.