mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
216 B
Solidity
10 lines
216 B
Solidity
pragma abicoder v2;
|
|
contract C {
|
|
struct S { uint256 x; }
|
|
function f(S calldata s) external pure {
|
|
s.x = 42;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 4156: (128-131): Calldata structs are read-only.
|