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

9 lines
189 B
Solidity

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