solidity/test/libsolidity/syntaxTests/array/slice/storage_static.sol

9 lines
184 B
Solidity

contract C {
uint256[42] x;
function f() public view {
x[1:2];
}
}
// ----
// TypeError: (71-77): Index range access is only supported for dynamic calldata arrays.