solidity/test/libsolidity/semanticTests/expressions/conditional_expression_true_literal.sol
2019-07-01 15:37:46 +02:00

8 lines
116 B
Solidity

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