solidity/test/libsolidity/semanticTests/viaYul/conditional/conditional_multiple.sol
2023-05-11 10:56:55 -05:00

9 lines
143 B
Solidity

contract A {
function f() public pure returns (uint) {
uint x = 3 < 0 ? 2 > 1 ? 2 : 1 : 7 > 2 ? 7 : 6;
return x;
}
}
// ----
// f() -> 7