solidity/test/libsolidity/syntaxTests/array/slice/slice_literal.sol
2022-04-01 23:41:18 -05:00

8 lines
176 B
Solidity

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