mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
7 lines
175 B
Solidity
7 lines
175 B
Solidity
|
pragma experimental ABIEncoderV2;
|
||
|
contract Test {
|
||
|
function f(uint256[] calldata s) external { s[0] = 4; }
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (98-102): Calldata arrays are read-only.
|