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

8 lines
168 B
Solidity

contract C {
function f() public pure {
1[1:];
}
}
// ----
// TypeError 4781: (52-57): Index range access is only possible for arrays and array slices.