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

8 lines
169 B
Solidity

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