mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
273 B
Solidity
10 lines
273 B
Solidity
contract C {
|
|
uint[] data;
|
|
function f(uint[] memory x) public {
|
|
uint[] storage dataRef = data;
|
|
dataRef = x;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 7407: (128-129): Type uint256[] memory is not implicitly convertible to expected type uint256[] storage pointer.
|