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

10 lines
147 B
Solidity

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