mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
361 B
Solidity
13 lines
361 B
Solidity
|
contract C {
|
||
|
int[] x;
|
||
|
function f() public {
|
||
|
int[] storage a = x;
|
||
|
int[] memory b;
|
||
|
a = b;
|
||
|
a = int[](b);
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (93-94): Type int256[] memory is not implicitly convertible to expected type int256[] storage pointer.
|
||
|
// TypeError: (102-110): Type int256[] memory is not implicitly convertible to expected type int256[] storage pointer.
|