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

8 lines
163 B
Solidity
Raw Normal View History

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