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

9 lines
182 B
Solidity
Raw Normal View History

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