solidity/test/libsolidity/semanticTests/expressions/conditional_expression_tuples.sol
2022-05-19 20:23:28 +02:00

11 lines
210 B
Solidity

contract test {
function f(bool cond) public returns (uint, uint) {
return cond ? (1, 2) : (3, 4);
}
}
// ====
// compileToEwasm: also
// ----
// f(bool): true -> 1, 2
// f(bool): false -> 3, 4