solidity/test/libsolidity/semanticTests/expressions/conditional_expression_false_literal.sol

11 lines
173 B
Solidity

contract test {
function f() public returns(uint d) {
return false ? 5 : 10;
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 10