mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
249 B
Solidity
9 lines
249 B
Solidity
pragma experimental ABIEncoderV2;
|
|
|
|
contract C {
|
|
struct S { mapping(uint => uint) a; }
|
|
function f(S memory) public {}
|
|
}
|
|
// ----
|
|
// TypeError 4103: (105-113): Only libraries are allowed to use the mapping type in public or external functions.
|