solidity/test/libsolidity/semanticTests/expressions/conditional_expression_true_literal.sol
2022-05-19 20:23:28 +02:00

10 lines
148 B
Solidity

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