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

8 lines
116 B
Solidity
Raw Normal View History

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