mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
388 B
Solidity
10 lines
388 B
Solidity
pragma experimental ABIEncoderV2;
|
|
|
|
contract C {
|
|
struct S { mapping(uint => uint) a; }
|
|
function f(S memory) public {}
|
|
}
|
|
// ----
|
|
// TypeError 4103: (105-113): Types containing (nested) mappings can only be parameters or return variables of internal or library functions.
|
|
// TypeError 4061: (105-113): Type struct C.S is only valid in storage because it contains a (nested) mapping.
|