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

9 lines
189 B
Solidity
Raw Normal View History

contract C {
function f() public pure {
bytes memory y;
y[1:2];
}
}
// ----
// TypeError: (76-82): Index range access is only supported for dynamic calldata arrays.