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

8 lines
164 B
Solidity

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