solidity/test/libsolidity/syntaxTests/structs/calldata_struct_mapping_function.sol
2020-06-30 16:53:41 +05:30

16 lines
452 B
Solidity

pragma experimental ABIEncoderV2;
contract test {
struct S {
T t;
}
struct T {
mapping (uint => uint) k;
}
function f(S calldata b) external {
}
}
// ----
// TypeError 4103: (155-167): Types containing (nested) mappings can only be parameters or return variables of internal or library functions.
// TypeError 4061: (155-167): Type struct test.S is only valid in storage because it contains a (nested) mapping.