mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow ABI encoding for array slices without explicit casts.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
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.
|
||||
@@ -4,4 +4,3 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (85-91): This type cannot be encoded.
|
||||
|
||||
Reference in New Issue
Block a user