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

9 lines
210 B
Solidity
Raw Normal View History

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