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

11 lines
171 B
Solidity

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