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

11 lines
171 B
Solidity
Raw Normal View History

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