mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
374 B
Solidity
12 lines
374 B
Solidity
|
contract C {
|
||
|
address payable[] a;
|
||
|
address[] b;
|
||
|
function f() public view {
|
||
|
address payable[] storage c = a;
|
||
|
address[] storage d = b;
|
||
|
d = c; // TODO: this could be allowed in the future
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (172-173): Type address payable[] storage pointer is not implicitly convertible to expected type address[] storage pointer.
|