solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/208_assignment_mem_to_local_storage_variable.sol

10 lines
273 B
Solidity
Raw Normal View History

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.