solidity/test/libsolidity/syntaxTests/array/calldata_assign.sol

7 lines
175 B
Solidity
Raw Normal View History

pragma experimental ABIEncoderV2;
contract Test {
function f(uint256[] calldata s) external { s[0] = 4; }
}
// ----
// TypeError: (98-102): Calldata arrays are read-only.