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

9 lines
205 B
Solidity
Raw Normal View History

contract c {
bytes public b;
function f() public {
b = msg.data[:];
}
}
// ----
// TypeError: (63-74): Type bytes calldata slice is not implicitly convertible to expected type bytes storage ref.