mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
178 B
Solidity
11 lines
178 B
Solidity
contract C {
|
|
uint256[] s;
|
|
function f() public view {
|
|
uint256[] storage x;
|
|
uint256[] storage y = (x = s)[0] > 0 ? x : x;
|
|
y;
|
|
}
|
|
}
|
|
// ---
|
|
// ----
|