mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
359 B
Solidity
13 lines
359 B
Solidity
contract C {
|
|
uint[] data;
|
|
uint8[] otherData;
|
|
function f() public {
|
|
uint8[] storage x = otherData;
|
|
uint[] storage y = data;
|
|
y = x;
|
|
// note that data = otherData works
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 7407: (163-164): Type uint8[] storage pointer is not implicitly convertible to expected type uint256[] storage pointer.
|