mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8 lines
192 B
Solidity
8 lines
192 B
Solidity
pragma experimental ABIEncoderV2;
|
|
contract Test {
|
|
struct S { int a; }
|
|
function f(S calldata s) external { s.a = 4; }
|
|
}
|
|
// ----
|
|
// TypeError: (114-117): Calldata structs are read-only.
|