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