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

8 lines
118 B
Solidity
Raw Normal View History

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