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

10 lines
150 B
Solidity

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