solidity/test/libsolidity/syntaxTests/array/calldata_assign.sol
2020-11-24 14:57:45 +01:00

7 lines
180 B
Solidity

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