solidity/test/libsolidity/syntaxTests/controlFlow/localStorageVariables/ternary_assignment_fine.sol
2022-11-07 23:16:02 +01:00

10 lines
171 B
Solidity

contract C {
uint256[] s;
function f() public view {
uint256[] storage x;
uint256[] storage y = (x = s)[0] > 0 ? x : x;
y;
}
}
// ----