mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
178 B
Solidity
9 lines
178 B
Solidity
|
contract test {
|
||
|
function f(bool cond) public returns (uint, uint) {
|
||
|
return cond ? (1, 2) : (3, 4);
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// f(bool): true -> 1, 2
|
||
|
// f(bool): false -> 3, 4
|