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

10 lines
149 B
Solidity

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